M3EButton constructor
const
M3EButton({
- Key? key,
- required VoidCallback? onPressed,
- Widget? child,
- M3EButtonStyle style = M3EButtonStyle.filled,
- M3EButtonSize size = M3EButtonSize.sm,
- M3EButtonShape shape = M3EButtonShape.round,
- bool enabled = true,
- WidgetStatesController? statesController,
- M3EButtonDecoration? decoration,
- FocusNode? focusNode,
- bool autofocus = false,
- ValueChanged<
bool> ? onFocusChange, - String? semanticLabel,
- String? tooltip,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - bool enableFeedback = _kDefaultEnableFeedback,
- InteractiveInkFeatureFactory? splashFactory,
M3EButton.
Implementation
const M3EButton({
super.key,
required this.onPressed,
this.child,
this.style = M3EButtonStyle.filled,
this.size = M3EButtonSize.sm,
this.shape = M3EButtonShape.round,
this.enabled = true,
this.statesController,
this.decoration,
this.focusNode,
this.autofocus = false,
this.onFocusChange,
this.semanticLabel,
this.tooltip,
this.mouseCursor = SystemMouseCursors.click,
this.onLongPress,
this.onHover,
this.enableFeedback = _kDefaultEnableFeedback,
this.splashFactory,
});