rules/bloc/bloc_utils library

Functions

isBloc(InterfaceType? type) bool
Checks if the given type extends Bloc (including Cubit, which extends Bloc).
isCubit(InterfaceType? type) bool
Checks if the given type extends Cubit specifically.