CreateBloc<T extends Bloc> typedef

CreateBloc<T extends Bloc> = T Function(Readable reader, BlocEventChannel? parentChannel)

Creates a bloc instance with parentChannel and using dependencies from reader

Implementation

typedef CreateBloc<T extends Bloc> = T Function(
  Readable reader,
  BlocEventChannel? parentChannel,
);