ManagedDataModel(List<Type> instanceTypes)

Creates an instance of ManagedDataModel from a list of types that extend ManagedObject. It is preferable to use ManagedDataModel.fromCurrentMirrorSystem over this method.

To register a class as a managed object within this data model, you must include its type in the list. Example:

  new DataModel([User, Token, Post]);

Source

ManagedDataModel(List<Type> instanceTypes) {
  var builder = new DataModelBuilder(this, instanceTypes);
  _entities = builder.entities;
  _persistentTypeToEntityMap = builder.persistentTypeToEntityMap;
}