ModelSelector<V> class

A class used to select a model in an ImmutableModel or ModelInner, where V is the model's value type.

See ImmutableModel.updateWithSelector and ModelInner.selectValue.

Note: this class is const.

Constructors

ModelSelector(String selectorString)
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectorString String
The dot string query selector.
final

Methods

modelFromImmutableModel(ImmutableModel im) ModelType<ModelType, dynamic>
Returns the selected ModelType model from im.
modelFromInner(ModelInner inner) ModelType<ModelType, dynamic>
Returns the selected ModelType model from inner.
modelFromModelMap(Map<String, ModelType<ModelType, dynamic>> modelMap) ModelType<ModelType, dynamic>
Returns the selected ModelType model from modelMap.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
updateInner(ModelInner inner, dynamic update) ModelInner
Updates the model selected by selector in inner with update.
valueFromImmutableModel(ImmutableModel im) → V
Returns the selected ModelType.value from im.
valueFromInner(ModelInner inner) → V
Returns the selected ModelType.value from inner.
valueFromModelMap(Map<String, ModelType<ModelType, dynamic>> modelMap) → V
Returns the selected ModelType.value from modelMap.

Operators

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