FastFilledButton constructor

const FastFilledButton({
  1. required VoidCallback onTap,
  2. Duration trottleTimeDuration = kFastTrottleTimeDuration,
  3. bool shouldTrottleTime = false,
  4. Color? highlightColor,
  5. Color? overlayColor,
  6. bool isEnabled = true,
  7. Color? textColor,
  8. EdgeInsetsGeometry? padding,
  9. Widget? child,
  10. String? text,
  11. Key? key,
  12. Color? backgroundColor,
  13. double? elevation,
  14. 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',
      );