BlocWithArgBuilder<T> typedef Null safety

BlocWithArgBuilder<T> = T Function(BuildContext? context, dynamic arg)

Takes context and arg, returns a Bloc

Used by BlocContainer to instantiate blocs on demand arg must implement equality

Implementation

typedef BlocWithArgBuilder<T> = T Function(BuildContext? context, dynamic arg);