numberToString method
- @override
override
String describing just the numeric value without a unit suffix.
Implementation
@override
String numberToString() {
if (value == null)
return value.toString();
return '${(value.clamp(0.0, 1.0) * 100.0).toStringAsFixed(1)}%';
}