Button constructor

const Button({
  1. Key? key,
  2. required ButtonBuilder builder,
  3. required VoidCallback? onTap,
  4. bool? disable,
  5. VoidCallback? onDragUp,
  6. bool delay = false,
  7. Duration? minVisualTapDuration,
  8. Duration? tapThrottle,
  9. EdgeInsetsGeometry? clickAreaMargin,
  10. bool debugShowClickableArea = false,
})

Implementation

const Button({
  Key? key,
  required this.builder,
  required this.onTap,
  bool? disable,
  this.onDragUp,
  this.delay = false,
  this.minVisualTapDuration,
  this.tapThrottle,
  this.clickAreaMargin,
  bool debugShowClickableArea = false,
})  : disable = disable ?? false,
      colorOfClickableArea =
          debugShowClickableArea ? const Color(0xBBFF0000) : const Color(0x00000000),
      super(key: key);