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