EnumToString class Null safety

Constructors

EnumToString()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

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
@Deprecated('Renamed function to EnumToString.convertToString to make it clearer')
parseCamelCase(dynamic enumItem) String
An alias for parse(item, camelCase: true)
@Deprecated('Deprecated in favour of using convertToString(item, camelCase: true)')
toList<T>(List<T> enumValues, {bool camelCase = false}) List<String>
Bulk convert enum values to a list