StoreProvider<_S> constructor

StoreProvider<_S>({
  1. Key? key,
  2. required Create<Store<_S>> create,
  3. Widget? child,
  4. bool? lazy,
})

Implementation

StoreProvider({
  Key? key,
  required Create<Store<_S>> create,
  Widget? child,
  bool? lazy,
}): this._(
  key: key,
  create: create,
  dispose: (_, store) => store.close(),
  child: child,
  lazy: lazy ?? false,
);