toShortString method
Returns the lowercase string name of the unit (e.g., 'minutes').
Implementation
String toShortString() {
return toString().split('.').last; // e.g. TimeUnit.minutes -> minutes
}
Returns the lowercase string name of the unit (e.g., 'minutes').
String toShortString() {
return toString().split('.').last; // e.g. TimeUnit.minutes -> minutes
}