@@ -53,7 +53,7 @@ class JuneBuilder<T extends JuneState> extends StatelessWidget {
53
53
54
54
const JuneBuilder (
55
55
this ._creator, {
56
- Key ? key,
56
+ super . key,
57
57
this .init,
58
58
this .global = true ,
59
59
required this .builder,
@@ -66,7 +66,7 @@ class JuneBuilder<T extends JuneState> extends StatelessWidget {
66
66
this .id,
67
67
this .didChangeDependencies,
68
68
this .didUpdateWidget,
69
- }) : super (key : key) ;
69
+ });
70
70
71
71
@override
72
72
Widget build (BuildContext context) {
@@ -96,7 +96,7 @@ class JuneBuilder<T extends JuneState> extends StatelessWidget {
96
96
97
97
abstract class Bind <T > extends StatelessWidget {
98
98
const Bind ({
99
- Key ? key,
99
+ super . key,
100
100
required this .child,
101
101
this .init,
102
102
this .global = true ,
@@ -109,7 +109,7 @@ abstract class Bind<T> extends StatelessWidget {
109
109
this .id,
110
110
this .didChangeDependencies,
111
111
this .didUpdateWidget,
112
- }) : super (key : key) ;
112
+ });
113
113
114
114
final InitBuilder <T >? init;
115
115
@@ -304,7 +304,7 @@ class _FactoryBind<T> extends Bind<T> {
304
304
final Widget ? child;
305
305
306
306
const _FactoryBind ({
307
- Key ? key,
307
+ super . key,
308
308
this .child,
309
309
this .init,
310
310
this .create,
@@ -318,7 +318,7 @@ class _FactoryBind<T> extends Bind<T> {
318
318
this .id,
319
319
this .didChangeDependencies,
320
320
this .didUpdateWidget,
321
- }) : super (key : key, child: child);
321
+ }) : super (child: child);
322
322
323
323
@override
324
324
Bind <T > _copyWithChild (Widget child) {
@@ -363,11 +363,10 @@ class Binds extends StatelessWidget {
363
363
final Widget child;
364
364
365
365
Binds ({
366
- Key ? key,
366
+ super . key,
367
367
required this .binds,
368
368
required this .child,
369
- }) : assert (binds.isNotEmpty),
370
- super (key: key);
369
+ }) : assert (binds.isNotEmpty);
371
370
372
371
@override
373
372
Widget build (BuildContext context) =>
@@ -380,8 +379,8 @@ class Binder<T> extends InheritedWidget {
380
379
///
381
380
/// The [child] argument is required
382
381
const Binder ({
383
- Key ? key,
384
- required Widget child,
382
+ super . key,
383
+ required super . child,
385
384
this .init,
386
385
this .global = true ,
387
386
this .autoRemove = true ,
@@ -395,7 +394,7 @@ class Binder<T> extends InheritedWidget {
395
394
this .didChangeDependencies,
396
395
this .didUpdateWidget,
397
396
this .create,
398
- }) : super (key : key, child : child) ;
397
+ });
399
398
400
399
final InitBuilder <T >? init;
401
400
final InstanceCreateBuilderCallback ? create;
@@ -427,7 +426,7 @@ class Binder<T> extends InheritedWidget {
427
426
/// The BindElement is responsible for injecting dependencies into the widget
428
427
/// tree so that they can be observed
429
428
class BindElement <T > extends InheritedElement {
430
- BindElement (Binder <T > widget) : super ( widget) {
429
+ BindElement (Binder <T > super . widget) {
431
430
initState ();
432
431
}
433
432
0 commit comments