IfLetStore<S, A> constructor

const IfLetStore<S, A>({
  1. Key? key,
  2. required Store<S?, A> store,
  3. required Widget builder(
    1. BuildContext context,
    2. Store<S, A> store
    ),
  4. Widget orElse(
    1. 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);