DrivenSwitcherResolver constructor

DrivenSwitcherResolver(
  1. DrivenPropertyResolver<Widget> resolver, {
  2. Key? key,
  3. bool? maintainKey = false,
})

Creates a DrivenSwitcherResolver from a provided resolver function.

This class provides a way to dynamically resolve the child widget based on the given events using a custom resolver function.

Implementation

DrivenSwitcherResolver(
  this.resolver, {
  super.key,
  super.maintainKey = false,
}) : super(resolver({}));