DrivenSwitcher.by constructor

DrivenSwitcher.by(
  1. DrivenPropertyResolver<Widget> callback
)

Creates a DrivenSwitcher from a callback function that resolves the child widget based on events.

Implementation

factory DrivenSwitcher.by(DrivenPropertyResolver<Widget> callback) {
  return DrivenSwitcherResolver(callback);
}