valueToString method
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 unit != null ? '${numberToString()}$unit' : numberToString();
}