DurationButton constructor

const DurationButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required Widget? child,
  4. required Duration duration,
  5. double? width,
  6. double? height,
  7. Color? coverColor,
  8. Color? hoverColor,
  9. Color? splashColor,
  10. InteractiveInkFeatureFactory? splashFactory,
  11. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(5)),
  12. VoidCallback? onComplete,
  13. bool? coverChild,
  14. Color? backgroundColor,
  15. Border? border,
})

Implementation

const DurationButton({
  Key? key,
  required this.onPressed,
  required this.child,
  required this.duration,
  this.width,
  this.height,
  this.coverColor,
  this.hoverColor,
  this.splashColor,
  this.splashFactory,
  this.borderRadius = const BorderRadius.all(Radius.circular(5)),
  this.onComplete,
  this.coverChild,
  this.backgroundColor,
  this.border,
}) : super(key: key);