ButtonStyleButton constructor
- Key? key,
- required VoidCallback? onPressed,
- required VoidCallback? onLongPress,
- required ValueChanged<
bool> ? onHover, - required ValueChanged<
bool> ? onFocusChange, - required ButtonStyle? style,
- required FocusNode? focusNode,
- required bool autofocus,
- required Clip? clipBehavior,
- MaterialStatesController? statesController,
- bool? isSemanticButton = true,
- @Deprecated('Remove this parameter as it is now ignored. ' 'Use ButtonStyle.iconAlignment instead. ' 'This feature was deprecated after v3.28.0-1.0.pre.') IconAlignment? iconAlignment,
- String? tooltip,
- required Widget? child,
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
Implementation
const ButtonStyleButton({
super.key,
required this.onPressed,
required this.onLongPress,
required this.onHover,
required this.onFocusChange,
required this.style,
required this.focusNode,
required this.autofocus,
required this.clipBehavior,
this.statesController,
this.isSemanticButton = true,
@Deprecated(
'Remove this parameter as it is now ignored. '
'Use ButtonStyle.iconAlignment instead. '
'This feature was deprecated after v3.28.0-1.0.pre.',
)
this.iconAlignment,
this.tooltip,
required this.child,
});