close method

  1. @override
  2. @mustCallSuper
Future<void> close()
override

Flush any buffered data and close this data manager. After calling close the data manager can no longer be used.

Implementation

@override
@mustCallSuper
Future<void> close() async {
  _subscription?.cancel();
  addEvent(DataManagerEvent(DataManagerEventTypes.closed));
}