evaluate static method

Widget evaluate(
  1. Widget value,
  2. Set<WidgetEvent> events
)
override

Resolves the value for the given set of events if value is a DrivenProperty, otherwise returns the value itself.

This is useful for widgets that have parameters which can optionally be a DrivenProperty.

Implementation

static Widget evaluate(Widget value, Set<WidgetEvent> events) {
  return DrivenProperty.evaluate<Widget>(value, events);
}