IfLetStore<S, A> constructor
const
IfLetStore<S, A> ({
- Key? key,
- required Store<
S?, A> store, - required Widget builder(
- BuildContext context,
- Store<
S, A> store
- Widget orElse(
- BuildContext context
Creates an IfLetStore with a nullable state store.
Implementation
const IfLetStore({
super.key,
required super.store,
required Widget Function(BuildContext context, Store<S, A> store) builder,
this.orElse,
}) : _builder = builder,
super(builder: WithStore.voidBuilder);