FastTextButton constructor

  1. @override
const FastTextButton({
  1. required VoidCallback onTap,
  2. Duration trottleTimeDuration = kFastTrottleTimeDuration,
  3. bool shouldTrottleTime = false,
  4. Color? highlightColor,
  5. bool isEnabled = true,
  6. Color? textColor,
  7. bool upperCase = false,
  8. FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  9. EdgeInsetsGeometry? padding,
  10. Widget? child,
  11. String? text,
  12. 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',
      );