GlassButtonGroupItem class

One button in a GlassButtonGroup: an icon, or a short label.

Inheritance

Constructors

GlassButtonGroupItem.new({Key? key, Widget? icon, Widget? label, required VoidCallback? onPressed, String? semanticLabel, bool selected = false, Color? tint, FocusNode? focusNode})
Creates an item; it needs an icon or a label.
const

Properties

focusNode → FocusNode?
The item's focus node, to drive or watch its focus.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
Shown in the item, such as a glyph.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → Widget?
Shown in the item as text; use a short one.
final
onPressed → VoidCallback?
Null disables the item.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
Shows the item in the accent, as a toggled tool.
final
semanticLabel → String?
Names the item for assistive technology.
final
tint → Color?
Colours the item. Defaults to the theme.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<GlassButtonGroupItem>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited