toLocale method

String toLocale(
  1. [Locale? locale]
)

covert the number to locale format if none locale givin it will use the current locale

Implementation

String toLocale([
  Locale? locale,
]) =>
    numberToLocale(this, locale ?? AppLang.current);