close method Null safety

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

Closes the instance. This method should be called when the instance is no longer needed. Once close is called, the instance can no longer be used.

Implementation

@mustCallSuper
@override
Future<void> close() async {
  // ignore: invalid_use_of_protected_member
  _blocObserver?.onClose(this);
  await _stateController.close();
}