toString method

String toString()
override

Returns string representation of the enum

if _name is a non-null string, then its used in the result, otherwise not

Implementation

toString() {
  return 'Enum.$runtimeType.$_name:$_value';
}