ModelDictionary<ImplementationModel extends Model, ImplementationAdapter extends Adapter<ImplementationModel> > constructor
const
ModelDictionary<ImplementationModel extends Model, ImplementationAdapter extends Adapter<ImplementationModel> > ()
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.
Implementation
const ModelDictionary(this.adapterFor);