FastOutlineButton constructor
const
FastOutlineButton({
- required VoidCallback onTap,
- Duration trottleTimeDuration = kFastTrottleTimeDuration,
- bool shouldTrottleTime = false,
- Color? highlightColor,
- bool isEnabled = true,
- Color? textColor,
- FastButtonEmphasis emphasis = FastButtonEmphasis.low,
- EdgeInsetsGeometry? padding,
- Widget? child,
- String? text,
- Key? key,
- Color? borderColor,
Implementation
const FastOutlineButton({
required super.onTap,
super.trottleTimeDuration,
super.shouldTrottleTime,
super.highlightColor,
super.isEnabled,
super.textColor,
super.emphasis,
super.padding,
super.child,
super.text,
super.key,
this.borderColor,
}) : 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',
);