resolveWith<States> static method

WidgetStateProperty<States> resolveWith<States>(
  1. StatefulWidgetResolver<States> builder
)

The most flexible WidgetStateProperty that allows for dynamically resolving behavior based on the provided set of states.

Implementation

static WidgetStateProperty<States> resolveWith<States>(
        StatefulWidgetResolver<States> builder) =>
    WidgetStateProperty(
      (BuildContext context) => StateProperty.resolveWith<States, Widget?>(
          (states) => builder(context, states)),
    );