M3EButton constructor

const M3EButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. Widget? child,
  4. M3EButtonStyle style = M3EButtonStyle.filled,
  5. M3EButtonSize size = M3EButtonSize.sm,
  6. M3EButtonShape shape = M3EButtonShape.round,
  7. bool enabled = true,
  8. WidgetStatesController? statesController,
  9. M3EButtonDecoration? decoration,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. ValueChanged<bool>? onFocusChange,
  13. String? semanticLabel,
  14. String? tooltip,
  15. MouseCursor mouseCursor = SystemMouseCursors.click,
  16. VoidCallback? onLongPress,
  17. ValueChanged<bool>? onHover,
  18. bool enableFeedback = _kDefaultEnableFeedback,
  19. 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,
});