transform method

  1. @override
String transform(
  1. int input,
  2. String locale
)
override

Transforms input into an instance of U using the provided locale.

Implementation

@override
String transform(int input, String locale) {
  final numberFormat = this.numberFormat ?? NumberFormat.decimalPattern();
  final formattedInput = numberFormat.format(input);
  final indicator = _getOrdinalIndicator(input);
  return '$formattedInput$indicator';
}