km method

  1. @override
String km(
  1. num count
)
override

A plural message

In en, this message translates to: '{count, plural, =0{} many{{count}m} other{{count}km}}'

Implementation

@override
String km(num count) {
  final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact(
    locale: localeName,

  );
  final String countString = countNumberFormat.format(count);

  String _temp0 = intl.Intl.pluralLogic(
    count,
    locale: localeName,
    other: '${countString}km',
    many: '${countString}m',
    zero: '',
  );
  return '$_temp0';
}