onDone method

  1. @override
Future<void> onDone()
override

When the data stream closes, the onDone handler is called. Default implementation is a no-op function. If another behavior is wanted, implementations of this abstract data manager should handle closing of the data stream.

Implementation

@override
Future<void> onDone() async {
  await database?.close();
  await super.close();
}