valueToString method

  1. @override
String valueToString()
override

Returns a string representation of the property value.

Subclasses should override this method instead of toDescription to customize how property values are converted to strings.

Implementation

@override
String valueToString() {
  if (value == null) {
    return value.toString();
  }
  return describeEnum(value!);
}