EnumToString class
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
Static Methods
-
convertToString(dynamic enumItem, {bool camelCase = false})
→ String
-
Convert an enum to a string
-
fromList<T>(List<T> enumValues, List valueList)
→ List<T?>
-
Get a list of enums given a list of strings.
Basically just EnumToString.fromString, but using lists
-
fromString<T>(List<T> enumValues, String value, {bool camelCase = false})
→ T?
-
Given a string, find and return its matching enum value
-
indexOf<T>(List<T> enumValues, String value)
→ int
-
Get the index of the enum value
-
parse(dynamic enumItem, {bool camelCase = false})
→ String
-
-
parseCamelCase(dynamic enumItem)
→ String
-
An alias for parse(item, camelCase: true)
-
toList<T>(List<T> enumValues, {bool camelCase = false})
→ List<String>
-
Bulk convert enum values to a list