ZdsRadioList<U extends ZdsRadioItem> class
Creates a list of radio buttons with labels. Tapping anywhere on the list tile selects the item.
The items used in the widget must extend ZdsRadioItem.
ZdsRadioList(
initialValue: DateValue('Current Month', DateRange.currentMonth),
items: [
WalkDate('Current Week', DateRange.currentWeek),
WalkDate('Last Week', DateRange.lastWeek),
WalkDate('Current Month', DateRange.currentMonth),
],
)
// Class definitions
class DateValue extends ZdsRadioItem<WalkDateRange> {
DateValue(String label, DateRange value) : super(label, value);
}
enum DateRange {currentWeek,lastWeek, currentMonth,}
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZdsRadioList
- Available Extensions
Constructors
-
ZdsRadioList({Key? key, Widget? title, List<
U> items = const <Never>[], void onChange(U? item)?, U? initialValue, bool condensed = false}) -
Create a list of items with a radio button and a label.
const
Properties
- condensed → bool
-
Condenses the radio items
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → U?
-
Initial value of the radio button.
final
-
items
→ List<
U> -
List of items in the radio list.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChange → (void Function(U? item)?)
-
Callback to update item state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget?
-
Primary content of the list, typically a Text widget.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ZdsRadioListState< U> -
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.
override
-
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}) → 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