close method Null safety
Closes this context and release its underlying resources.
This method closes the connection to persistentStore and releases dataModel. A context may not be reused once it has been closed.
Implementation
Future close() async {
  await persistentStore.close();
  _finalizer.detach(this);
  mm.remove(dataModel!);
}