M3EToggleButton.text constructor

const M3EToggleButton.text({
  1. Key? key,
  2. ValueChanged<bool>? onCheckedChange,
  3. Widget? icon,
  4. Widget? checkedIcon,
  5. Widget? label,
  6. Widget? checkedLabel,
  7. bool? checked,
  8. M3EButtonSize size = M3EButtonSize.sm,
  9. bool enabled = true,
  10. M3EToggleButtonDecoration? decoration,
  11. MouseCursor? mouseCursor,
  12. WidgetStatesController? statesController,
  13. FocusNode? focusNode,
  14. bool autofocus = false,
  15. ValueChanged<bool>? onFocusChange,
  16. String? semanticLabel,
  17. String? tooltip,
  18. VoidCallback? onLongPress,
  19. ValueChanged<bool>? onHover,
  20. bool enableFeedback = _kDefaultEnableFeedback,
  21. 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;