dispose method

Future<void> dispose()

Closes the box.

Be careful, this closes all instances of this box. You have to make sure that you don't access the box anywhere else after that.

Implementation

Future<void> dispose() async {
  await _selfStream?.cancel();
}