phase3: @required->required keyword, nullable for-in iterator fix. 309->251
This commit is contained in:
@@ -9,12 +9,12 @@ class AnimationPointManager {
|
||||
static late AnimationController controller2;
|
||||
|
||||
Future<void> addParabolicAniamtion({
|
||||
@required TickerProvider vsync,
|
||||
@required GlobalKey stackKey,
|
||||
@required GlobalKey startKey,
|
||||
@required GlobalKey endKey,
|
||||
@required Duration duration,
|
||||
@required AnimationStatusListener statusListener,
|
||||
required TickerProvider vsync,
|
||||
required GlobalKey stackKey,
|
||||
required GlobalKey startKey,
|
||||
required GlobalKey endKey,
|
||||
required Duration duration,
|
||||
required AnimationStatusListener statusListener,
|
||||
Color color = Colors.red,
|
||||
double size = 20,
|
||||
Offset startAdjustOffset = Offset.zero,
|
||||
@@ -51,10 +51,10 @@ class AnimationPointManager {
|
||||
}
|
||||
|
||||
Future<void> addPopupAniamtion({
|
||||
@required TickerProvider vsync,
|
||||
@required GlobalKey stackKey,
|
||||
@required GlobalKey startKey,
|
||||
@required Widget child,
|
||||
required TickerProvider vsync,
|
||||
required GlobalKey stackKey,
|
||||
required GlobalKey startKey,
|
||||
required Widget child,
|
||||
Duration? duration,
|
||||
Offset popupOffset = Offset.zero,
|
||||
AnimationStatusListener? statusListener,
|
||||
|
||||
@@ -14,7 +14,7 @@ import 'rules.dart';
|
||||
import 'options_base.dart';
|
||||
|
||||
class CheckOptions extends OptionsBase {
|
||||
CheckOptions({@required Product product, @required int index, @required Map<String, dynamic> selections})
|
||||
CheckOptions({required Product product, required int index, required Map<String, dynamic> selections})
|
||||
: super(product: product, index: index, selections: selections);
|
||||
|
||||
@override
|
||||
|
||||
@@ -9,7 +9,7 @@ abstract class OptionsBase extends StatefulWidget {
|
||||
final Product product;
|
||||
final int index;
|
||||
final Map<String, dynamic> selections;
|
||||
OptionsBase({@required Product product, @required int index, @required Map<String, dynamic> selections})
|
||||
OptionsBase({required Product product, required int index, required Map<String, dynamic> selections})
|
||||
: product = product,
|
||||
index = index,
|
||||
selections = selections;
|
||||
|
||||
@@ -14,7 +14,7 @@ import 'options_base.dart';
|
||||
import 'rules.dart';
|
||||
|
||||
class QtyOptions extends OptionsBase {
|
||||
QtyOptions({@required Product product, @required int index, @required Map<String, dynamic> selections})
|
||||
QtyOptions({required Product product, required int index, required Map<String, dynamic> selections})
|
||||
: super(product: product, index: index, selections: selections);
|
||||
|
||||
@override
|
||||
|
||||
@@ -14,7 +14,7 @@ import 'options_base.dart';
|
||||
import 'rules.dart';
|
||||
|
||||
class RadioOptions extends OptionsBase {
|
||||
RadioOptions({@required Product product, @required int index, @required Map<String, dynamic> selections})
|
||||
RadioOptions({required Product product, required int index, required Map<String, dynamic> selections})
|
||||
: super(product: product, index: index, selections: selections);
|
||||
|
||||
@override
|
||||
|
||||
@@ -12,10 +12,10 @@ class ParabolicAnimationWidget extends AnimatedWidget {
|
||||
final Offset endAdjustOffset;
|
||||
|
||||
late ParabolicAnimationWidget({
|
||||
@required Animation<double> animation,
|
||||
@required this.stackKey,
|
||||
@required this.startKey,
|
||||
@required this.endKey,
|
||||
required Animation<double> animation,
|
||||
required this.stackKey,
|
||||
required this.startKey,
|
||||
required this.endKey,
|
||||
this.size = 20.0,
|
||||
this.color = Colors.red,
|
||||
this.startAdjustOffset = Offset.zero,
|
||||
|
||||
@@ -10,10 +10,10 @@ class PopupAnimationWidget extends AnimatedWidget {
|
||||
final Animation<double> animation;
|
||||
|
||||
late PopupAnimationWidget({
|
||||
@required this.animation,
|
||||
@required this.stackKey,
|
||||
@required this.startKey,
|
||||
@required this.child,
|
||||
required this.animation,
|
||||
required this.stackKey,
|
||||
required this.startKey,
|
||||
required this.child,
|
||||
this.color = Colors.yellow,
|
||||
this.popupOffset = Offset.zero,
|
||||
}) : super(listenable: animation);
|
||||
|
||||
Reference in New Issue
Block a user