FastFilledButton constructor
const
FastFilledButton({
- required VoidCallback onTap,
- Duration trottleTimeDuration = kFastTrottleTimeDuration,
- bool shouldTrottleTime = false,
- Color? highlightColor,
- Color? overlayColor,
- bool isEnabled = true,
- Color? textColor,
- EdgeInsetsGeometry? padding,
- Widget? child,
- String? text,
- Key? key,
- Color? backgroundColor,
- double? elevation,
- double? fontSize,
Implementation
const FastFilledButton({
required super.onTap,
super.trottleTimeDuration,
super.shouldTrottleTime,
super.highlightColor,
super.overlayColor,
super.isEnabled,
super.textColor,
super.padding,
super.child,
super.text,
super.key,
this.backgroundColor,
this.elevation,
this.fontSize,
}) : assert(
child == null || text == null,
'child and text properties cannot be initialized at the same time',
),
assert(
child != null || text != null,
'child or text properties must be initialized',
);