asNameMap static method
Creates a map from the names of AndroidVerticalScrollbarPosition values to the values.
The collection that this method is called on is expected to have
values with distinct names, like the values list of an enum class.
Only one value for each name can occur in the created map,
so if two or more values have the same name (either being the
same value, or being values of different enum type), at most one of
them will be represented in the returned map.
Implementation
static Map<String, AndroidVerticalScrollbarPosition> asNameMap() =>
<String, AndroidVerticalScrollbarPosition>{
for (final value in AndroidVerticalScrollbarPosition.values)
value.name(): value,
};