ShadToggleGroupItem<T> class

A single item within a ShadToggleGroup.

This is a description, not a widget that builds itself — the group renders a ShadToggle from it so that selection stays in one place.

Annotations

Constructors

ShadToggleGroupItem({required T value, required Widget child, Widget? leading, bool enabled = true, String? semanticLabel})
const

Properties

child Widget
The content of the item.
final
enabled bool
Whether this individual item responds to input.
final
hashCode int
The hash code for this object.
no setterinherited
leading Widget?
An optional widget shown before child.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The accessible name, needed when child is icon-only.
final
value → T
The value this item contributes to the group's selection.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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