getSymbol method
Gets a localized symbol for this RateUnit.
Implementation
String getSymbol({required String locale}) {
switch (this) {
case RateUnit.second:
return 's';
case RateUnit.minute:
return 'min';
case RateUnit.hour:
return 'hr';
case RateUnit.day:
return 'day';
case RateUnit.week:
return 'wk';
}
}