ManagedContext(ManagedDataModel dataModel, PersistentStore persistentStore)

Creates an instance of ManagedContext from a ManagedDataModel and PersistentStore.

This instance will become the ManagedContext.defaultContext, unless another ManagedContext is created, in which the new context becomes the default context. See ManagedContext.standalone to create a context without setting it as the default context.

Source

ManagedContext(this.dataModel, this.persistentStore) {
  defaultContext = this;
}