localeToString function Null safety

String localeToString(
  1. Locale locale,
  2. {String separator = '_'}
)

Implementation

String localeToString(Locale locale, {String separator = '_'}) {
  return locale.toString().split('_').join(separator);
}