BlocProvider<B extends StateStreamableSource<S>, S> constructor

const BlocProvider<B extends StateStreamableSource<S>, S>({
  1. Key? key,
  2. required Create<B> create,
  3. Widget builder(
    1. BuildContext context,
    2. S state,
    3. B bloc
    )?,
  4. Widget? child,
  5. dynamic init(
    1. BuildContext context,
    2. B bloc
    )?,
})

Implementation

const BlocProvider({super.key, required this.create, this.builder, this.child, this.init});