resolvePropAs<S, T> static method

T resolvePropAs<S, T>(
  1. T value,
  2. Set<S> states
)

Implementation

static T resolvePropAs<S, T>(T value, Set<S> states) {
  if (value is StateProperty<S, T>) {
    final StateProperty<S, T> property = value;
    return property.resolveProp(states);
  }
  return value;
}