Locale constructor

Locale({
  1. required String name,
  2. int monthStart = 0,
  3. List<String> monthAbbreviations = const [],
  4. int weekStart = 0,
  5. List<String> weekAbbreviations = const [],
  6. Map<String, String> formatText = const {},
})

name 语言名称

monthStart 月份缩写开始下标 只能是 0 或者 1 其他长度请自行通过addMatchers的方式实现

monthAbbreviations 月份缩写数组 必须是一月份开始递增

weekStart 周缩写开始 只能是 0 或者 1 其他长度请自行通过addMatchers的方式实现

weekAbbreviations 周数组

formatText 格式文字

Implementation

Locale(
    {required this.name,
    this.monthStart = 0,
    this.monthAbbreviations = const [],
    this.weekStart = 0,
    this.weekAbbreviations = const [],
    this.formatText = const {}});