setLocaleInfo function

void setLocaleInfo(
  1. String locale,
  2. TimelineInfo timelineInfo
)

add custom configuration.

locale / timelineInfo 为非空类型(sound null-safety 下编译期保证); 不再使用 ArgumentError.checkNotNull(该 API 已废弃且在空安全下是死代码)。

Implementation

void setLocaleInfo(String locale, TimelineInfo timelineInfo) {
  _timelineInfoMap[locale] = timelineInfo;
}