isBloc function

bool isBloc(
  1. InterfaceType? type
)

Checks if the given type extends Bloc (including Cubit, which extends Bloc).

Implementation

bool isBloc(InterfaceType? type) => _extendsAny(type, {'Bloc', 'Cubit'});