close method

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

Cancels the state stream subscription when closing the Cubit.

Implementation

@override
Future<void> close() async {
  _stateStreamSubscription?.cancel();

  super.close();
}