EnumIterableExtensions<T extends Enum> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
byNameTry(
String? name, {bool caseSensitive = true}) → T? -
Available on Iterable<
Finds and returns the first enum value in this list whoseT> , provided by the EnumIterableExtensions extensionname
property matches the givenname
, ornull
if no such value is found. -
mostOccurrences(
) → MapEntry< Enum, int> -
Available on Iterable<
Return a MapEntry with the most common value and its frequency.T> , provided by the EnumIterableExtensions extension -
sortedEnumValues(
) → List< T> -
Available on Iterable<
Returns a list of enum values sorted alphabetically by name.T> , provided by the EnumIterableExtensions extension