LiveChoiceExtension<T extends Named<T> > extension
A Simple Choice Item extension on Value<Choice<I, T>>
This extension provides a simple way to access the properties of Choice
without having to access the value property
This extension is only available for Value<Choice<I, T>>, and it's subtypes.
Methods
-
select(
Map< String, dynamic> properties) → void -
Available on LiveValue<
Selects this choice itemChoice< , provided by the LiveChoiceExtension extensionT> > -
selectIndex(
int index) → void -
Available on LiveValue<
Selects this choice item by indexChoice< , provided by the LiveChoiceExtension extensionT> >
This is equivalent to calling Choice.selectIndex with theindexof this choice item
Theindexmust be unique to avoid accidental collisions.