@@ -428,7 +428,7 @@ class AnimatedToggleSwitch<T extends Object?>
428428 required this .values,
429429 SimpleIconBuilder <T >? iconBuilder,
430430 AnimatedIconBuilder <T >? customIconBuilder,
431- List < Widget > ? iconList,
431+ super . iconList,
432432 this .animationDuration = const Duration (milliseconds: 500 ),
433433 this .animationCurve = Curves .easeInOutCirc,
434434 this .indicatorSize = const Size .fromWidth (48.0 ),
@@ -481,7 +481,6 @@ class AnimatedToggleSwitch<T extends Object?>
481481 styleBuilder: styleBuilder,
482482 customStyleBuilder: customStyleBuilder,
483483 styleList: styleList,
484- iconList: iconList,
485484 );
486485
487486 /// Special version of [AnimatedToggleSwitch.size] .
@@ -502,7 +501,7 @@ class AnimatedToggleSwitch<T extends Object?>
502501 Size indicatorSize = const Size .square (1.0 ),
503502 SimpleIconBuilder <T >? iconBuilder,
504503 AnimatedIconBuilder <T >? customIconBuilder,
505- List < Widget > ? iconList,
504+ super . iconList,
506505 this .onChanged,
507506 this .borderWidth = 2.0 ,
508507 this .style = const ToggleStyle (),
@@ -553,7 +552,6 @@ class AnimatedToggleSwitch<T extends Object?>
553552 styleBuilder: styleBuilder,
554553 customStyleBuilder: customStyleBuilder,
555554 styleList: styleList,
556- iconList: iconList,
557555 );
558556
559557 static AnimatedIconBuilder <T >? _iconSizeBuilder <T >(
@@ -599,7 +597,7 @@ class AnimatedToggleSwitch<T extends Object?>
599597 required this .values,
600598 SimpleRollingIconBuilder <T >? iconBuilder,
601599 RollingIconBuilder <T >? customIconBuilder,
602- List < Widget > ? iconList,
600+ super . iconList,
603601 this .animationDuration = const Duration (milliseconds: 500 ),
604602 this .animationCurve = Curves .easeInOutCirc,
605603 this .indicatorSize = const Size .fromWidth (46.0 ),
@@ -663,7 +661,6 @@ class AnimatedToggleSwitch<T extends Object?>
663661 styleBuilder: styleBuilder,
664662 customStyleBuilder: customStyleBuilder,
665663 styleList: styleList,
666- iconList: iconList,
667664 );
668665
669666 /// Special version of [AnimatedToggleSwitch.rolling] .
@@ -684,7 +681,7 @@ class AnimatedToggleSwitch<T extends Object?>
684681 required this .values,
685682 SimpleRollingIconBuilder <T >? iconBuilder,
686683 RollingIconBuilder <T >? customIconBuilder,
687- List < Widget > ? iconList,
684+ super . iconList,
688685 this .animationDuration = const Duration (milliseconds: 500 ),
689686 this .animationCurve = Curves .easeInOutCirc,
690687 Size indicatorSize = const Size .square (1.0 ),
@@ -749,7 +746,6 @@ class AnimatedToggleSwitch<T extends Object?>
749746 styleBuilder: styleBuilder,
750747 customStyleBuilder: customStyleBuilder,
751748 styleList: styleList,
752- iconList: iconList,
753749 );
754750
755751 static CustomIndicatorBuilder <T > _rollingForegroundIndicatorIconBuilder <T >(
@@ -1334,7 +1330,7 @@ class AnimatedToggleSwitch<T extends Object?>
13341330}
13351331
13361332class _MyLoading extends StatelessWidget {
1337- const _MyLoading ({ Key ? key}) : super (key : key );
1333+ const _MyLoading ();
13381334
13391335 @override
13401336 Widget build (BuildContext context) {
0 commit comments