resolveWith<States> static method
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)),
);