M3EToggleButton.text constructor
const
M3EToggleButton.text({
- Key? key,
- ValueChanged<
bool> ? onCheckedChange, - Widget? icon,
- Widget? checkedIcon,
- Widget? label,
- Widget? checkedLabel,
- bool? checked,
- M3EButtonSize size = M3EButtonSize.sm,
- bool enabled = true,
- M3EToggleButtonDecoration? decoration,
- MouseCursor? mouseCursor,
- WidgetStatesController? statesController,
- FocusNode? focusNode,
- bool autofocus = false,
- ValueChanged<
bool> ? onFocusChange, - String? semanticLabel,
- String? tooltip,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - bool enableFeedback = _kDefaultEnableFeedback,
- InteractiveInkFeatureFactory? splashFactory,
A text toggle button (lowest emphasis).
Implementation
const M3EToggleButton.text({
super.key,
this.onCheckedChange,
this.icon,
this.checkedIcon,
this.label,
this.checkedLabel,
this.checked,
this.size = M3EButtonSize.sm,
this.enabled = 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,
}) : style = M3EButtonStyle.text,
isGroupConnected = false,
isFirstInGroup = true,
isLastInGroup = true;