DurationButton constructor
const
DurationButton({
- Key? key,
- required VoidCallback onPressed,
- required Widget? child,
- required Duration duration,
- double? width,
- double? height,
- Color? coverColor,
- Color? hoverColor,
- Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(5)),
- VoidCallback? onComplete,
- bool? coverChild,
- Color? backgroundColor,
- 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);