FastRaisedButton constructor

const FastRaisedButton({
  1. required VoidCallback onTap,
  2. Duration trottleTimeDuration = kFastTrottleTimeDuration,
  3. bool shouldTrottleTime = false,
  4. Color? highlightColor,
  5. bool isEnabled = true,
  6. Color? textColor,
  7. EdgeInsetsGeometry? padding,
  8. Widget? child,
  9. String? text,
  10. Key? key,
  11. Color? backgroundColor,
  12. double? elevation,
})

Implementation

const FastRaisedButton({
  required super.onTap,
  super.trottleTimeDuration,
  super.shouldTrottleTime,
  super.highlightColor,
  super.isEnabled,
  super.textColor,
  super.padding,
  super.child,
  super.text,
  super.key,
  this.backgroundColor,
  this.elevation,
})  : 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',
      );