Button constructor
const
Button({
- Key? key,
- Widget? icon,
- String? text,
- Widget? child,
- String? tooltip,
- TextStyle? textStyle,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? disabledBackgroundColor,
- EdgeInsets? padding,
- BorderRadius? borderRadius,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
Implementation
const Button({
super.key,
this.icon,
this.text,
this.child,
this.tooltip,
this.textStyle,
this.foregroundColor,
this.backgroundColor,
this.disabledBackgroundColor,
this.padding,
this.borderRadius,
required this.onPressed,
this.onLongPress,
}) : assert(icon != null || text != null || child != null);