AnyAnimatedButtonParams constructor

AnyAnimatedButtonParams({
  1. required double height,
  2. Key? key,
  3. AlignmentGeometry? alignment,
  4. EdgeInsetsGeometry? padding,
  5. Color? color,
  6. Decoration? decoration,
  7. Decoration? foregroundDecoration,
  8. double? width,
  9. BoxConstraints? constraints,
  10. EdgeInsetsGeometry? margin,
  11. Matrix4? transform,
  12. AlignmentGeometry? transformAlignment,
  13. Widget? child = const SizedBox(),
  14. Clip clipBehavior = Clip.none,
  15. Curve curve = Curves.linear,
  16. Duration duration = const Duration(milliseconds: 300),
  17. 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)".');