$resolveWith static method

$Value? $resolveWith(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Wrapper for the WidgetStateProperty.resolveWith method

Implementation

static $Value? $resolveWith(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  final value = WidgetStateProperty.resolveWith((Set<WidgetState> states) {
    return (args[0]! as EvalCallable)(runtime, null, [$Set.wrap(states)])
        ?.$value;
  });
  return $WidgetStateProperty.wrap(value);
}