phaseValue<V> method
Returns a mapped value according the values
map.
If no value is returned by the mapping, will return defaultValue
.
Implementation
V phaseValue<V>({
required Map<T, V> values,
required V defaultValue,
}) {
return values[_value] ?? defaultValue;
}