close method

Future close()

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();
  dataModel!.release();
}