ModelDictionary<_ImplementationModel extends Model, _ImplementationAdapter extends Adapter<_ImplementationModel>> class

A modelDictionary points a Provider to the Model's Adapter. The Provider uses it to construct app models from raw data.

It should only be instantiated once, even if multiple Providers are used. The end instantiation is left to the end user in case const (favored over final) can be used for all Adapter mappings.

Constructors

ModelDictionary(Map<Type, _ImplementationAdapter> adapterFor)
const

Properties

adapterFor Map<Type, _ImplementationAdapter>
A generated map associating models to adapters
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