restart method

Future<void> restart()

Restarts this program, usually by disposing and re-initializing the collection.

Implementation

Future<void> restart() async {
  await collection?.dispose();
  await collection?.init();
}