toOrdinalNumerical method
Converts this int to ordinal numerical format, such as converting 1
to '1st'
, or 42
to '42nd'
.
Implementation
String toOrdinalNumerical({
String? locale,
}) {
const transformation = OrdinalNumericalTransformation();
final result =
transformation.transform(this, locale ?? Intl.getCurrentLocale());
return result;
}