EnumUtils class

Helper class for Enum operations

Constructors

EnumUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getEnum<T extends Enum>(String enumName, List<T> enumList, T defaultEnum, {bool ignoreCase = false}) → T
Gets the enum for the enum list, returning defaultEnum if not found.
getEnumMap(List<Enum> enumList) Map
Gets the Map of enums by name.
isValidEnum(String enumName, List<Enum> enumList, {bool ignoreCase = false}) bool
Checks if the specified name is a valid enum for the enum list.