close method
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));
}