M3EToggleButton constructor

const M3EToggleButton({
  1. Key? key,
  2. ValueChanged<bool>? onCheckedChange,
  3. Widget? icon,
  4. Widget? checkedIcon,
  5. Widget? label,
  6. Widget? checkedLabel,
  7. bool? checked,
  8. M3EButtonStyle style = M3EButtonStyle.filled,
  9. M3EButtonSize size = M3EButtonSize.sm,
  10. bool enabled = true,
  11. bool isGroupConnected = false,
  12. bool isFirstInGroup = true,
  13. bool isLastInGroup = true,
  14. M3EToggleButtonDecoration? decoration,
  15. MouseCursor? mouseCursor,
  16. WidgetStatesController? statesController,
  17. FocusNode? focusNode,
  18. bool autofocus = false,
  19. ValueChanged<bool>? onFocusChange,
  20. String? semanticLabel,
  21. String? tooltip,
  22. VoidCallback? onLongPress,
  23. ValueChanged<bool>? onHover,
  24. bool enableFeedback = _kDefaultEnableFeedback,
  25. InteractiveInkFeatureFactory? splashFactory,
})

const.

Implementation

const M3EToggleButton({
  super.key,
  this.onCheckedChange,
  this.icon,
  this.checkedIcon,
  this.label,
  this.checkedLabel,
  this.checked,
  this.style = M3EButtonStyle.filled,
  this.size = M3EButtonSize.sm,
  this.enabled = true,
  this.isGroupConnected = false,
  this.isFirstInGroup = true,
  this.isLastInGroup = true,
  this.decoration,
  this.mouseCursor,
  this.statesController,
  this.focusNode,
  this.autofocus = false,
  this.onFocusChange,
  this.semanticLabel,
  this.tooltip,
  this.onLongPress,
  this.onHover,
  this.enableFeedback = _kDefaultEnableFeedback,
  this.splashFactory,
});