close method

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

Closes the internal ScreenManagerCubit before closing the bloc itself.

Implementation

@override
Future<void> close() async {
  await infiniteListBloc.close();
  if (isStreamable) (this as BlocxCollectionSyncStreamMixin<T, P>).closeStreams();
  await super.close();
}