BlocProvider<T extends Bloc<S>, S extends BlocState>.lazy constructor

BlocProvider<T extends Bloc<S>, S extends BlocState>.lazy({
  1. required Create<T> create,
  2. Dispose<T>? dispose,
  3. Widget? child,
  4. Key? key,
})

Implementation

BlocProvider.lazy({
  required Create<T> create,
  Dispose<T>? dispose,
  Widget? child,
  Key? key,
}) : this._(
        dispose: dispose,
        create: create,
        child: child,
        lazy: true,
        key: key,
      );