getInstance static method

UnitFormat getInstance([
  1. String? inLocale
])

Returns the unit format for the specified locale.

Implementation

static UnitFormat getInstance([String? inLocale]) => inLocale == null
    ? standardUnitFormat
    : _localeFormats.putIfAbsent(
        inLocale, () => _DefaultUnitFormat(inLocale));