ChipsChoiceOption<T> class

Choice option

Constructors

ChipsChoiceOption({@required T value, @required String label, Widget avatar, bool disabled: false, bool hidden: false, dynamic meta})
Default Constructor

Properties

avatar Widget
Represent as chips avatar
final
disabled → bool
Whether the choice is disabled or not
final
hidden → bool
Whether the choice is hidden or displayed
final
label → String
Represent as primary text
final
meta → dynamic
This prop is useful for choice builder
final
value → T
Value to return
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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

Static Methods

listFrom<R, E>({List<E> source, _ChipsChoiceOptionProp<E, R> value, _ChipsChoiceOptionProp<E, String> label, _ChipsChoiceOptionProp<E, Widget> avatar, _ChipsChoiceOptionProp<E, bool> disabled, _ChipsChoiceOptionProp<E, bool> hidden, _ChipsChoiceOptionProp<E, dynamic> meta}) → List<ChipsChoiceOption<R>>
Helper to create option list from any list