toNumeral method
represents this number on its text form as a cardinal
Implementation
String toNumeral([String? locale]) {
final t = parseLocale(locale);
final c = Cardinal(this);
switch (t) {
case InternalLocale.enUk:
return c.enUk;
case InternalLocale.enUs:
return c.enUs;
case InternalLocale.unsupported:
throw UnimplementedError(
'Attempted to represent $this as numeral with locale $locale, '
'but it is not yet supported',
);
}
}