SwitchStore<S, A> constructor

const SwitchStore<S, A>({
  1. Key? key,
  2. required Store<S, A> store,
  3. Map<Type, dynamic> typeMap = const {},
  4. Widget orElse(
    1. BuildContext context
    )?,
})

Creates a SwitchStore with a type-to-builder mapping.

Implementation

const SwitchStore({
  Key? key,
  required this.store,
  this.typeMap = const {},
  this.orElse,
}) : super(key: key);