narrow function

CompactLocale narrow({
  1. String k = 'rb',
  2. String M = 'jt',
  3. String B = 'M',
  4. String T = 'T',
})

Returns this locale with customizable labels for 10³, 10⁶, 10⁹ and 10¹².

Implementation

// ignore: non_constant_identifier_names
CompactLocale narrow({String k = 'rb', String M = 'jt', String B = 'M', String T = 'T'}) => locale.copyWith(labels: {CompactLabel.thousand: k, CompactLabel.million: M, CompactLabel.billion: B, CompactLabel.trillion: T});