Button constructor
const
Button({
- Key? key,
- required ButtonBuilder builder,
- required VoidCallback? onTap,
- bool? disable,
- VoidCallback? onDragUp,
- bool delay = false,
- Duration? minVisualTapDuration,
- Duration? tapThrottle,
- EdgeInsetsGeometry? clickAreaMargin,
- 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);