DrivenChild<T extends Widget?>.by constructor

DrivenChild<T extends Widget?>.by(
  1. DrivenPropertyResolver<T> callback
)

Creates a DrivenChild with a callback function that determines the child widget.

This factory method allows you to create a DrivenChild instance by providing a callback function that takes the current events as input and returns the appropriate widget.

Implementation

factory DrivenChild.by(DrivenPropertyResolver<T> callback) {
  return DrivenChildResolver<T>(callback);
}