AnyAnimatedButtonParams constructor
AnyAnimatedButtonParams({
- required double height,
- Key? key,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- double? width,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- Widget? child = const SizedBox(),
- Clip clipBehavior = Clip.none,
- Curve curve = Curves.linear,
- Duration duration = const Duration(milliseconds: 300),
- VoidCallback? onEnd,
Implementation
AnyAnimatedButtonParams({
required this.height,
this.key,
this.alignment,
this.padding,
this.color,
this.decoration,
this.foregroundDecoration,
this.width,
this.constraints,
this.margin,
this.transform,
this.transformAlignment,
this.child = const SizedBox(),
this.clipBehavior = Clip.none,
this.curve = Curves.linear,
this.duration = const Duration(milliseconds: 300),
this.onEnd,
}) : assert(margin == null || margin.isNonNegative),
assert(padding == null || padding.isNonNegative),
assert(decoration == null || decoration.debugAssertIsValid()),
assert(
color == null || decoration == null,
'Cannot provide both a color and a decoration\n'
'The color argument is just a shorthand for "decoration: BoxDecoration(color: color)".');