Localison constructor

  1. Locale locale,
  2. {String separator,
  3. Map<LocalisonQuantity, int> quantities}

Instantiates a new Localison instance using the specified locale.


separator separator character between a key name, gender value, and plural count value, defaults to the underscore "_" character.

quantities enables you to represent a quantity as we, humans, understand it and not following the plural rules of a specific language.


  this.locale, {
  String separator,
  Map<LocalisonQuantity, int> quantities,
})  : assert(null != locale, 'Locale cannot be null.'),
      assert(true != quantities?.isEmpty, 'Quantities cannot be empty.'),
      separator = separator ?? '_',
      quantities = quantities ?? defaultQuantities;