Skip to content

Commit 9672221

Browse files
committed
style: apply modern constructor syntax
1 parent 07ffe3b commit 9672221

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

geocoding_darwin/example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BaseflowPluginExample extends StatelessWidget {
1313
createMaterialColor(const Color.fromRGBO(48, 49, 60, 1));
1414

1515
/// Constructs the [BaseflowPluginExample] class
16-
BaseflowPluginExample({Key? key}) : super(key: key);
16+
BaseflowPluginExample({super.key});
1717

1818
@override
1919
Widget build(BuildContext context) {
@@ -89,7 +89,7 @@ class BaseflowPluginExample extends StatelessWidget {
8989
/// A Flutter example demonstrating how the [pluginName] plugin could be used
9090
class AppHome extends StatefulWidget {
9191
/// Constructs the [AppHome] class
92-
const AppHome({Key? key, required this.title}) : super(key: key);
92+
const AppHome({super.key, required this.title});
9393

9494
/// The [title] of the application, which is shown in the application's
9595
/// title bar.

geocoding_darwin/example/lib/template/info_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'globals.dart';
66
/// [StatelessWidget] displaying information about Baseflow
77
class InfoPage extends StatelessWidget {
88
/// Constructs the [InfoPage] class
9-
const InfoPage({Key? key}) : super(key: key);
9+
const InfoPage({super.key});
1010

1111
@override
1212
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)