ModelDictionary<ImplementationModel extends Model, ImplementationAdapter extends Adapter<ImplementationModel> > class
abstract
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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited