setLocaleInfo function
add custom configuration.
locale / timelineInfo 为非空类型(sound null-safety 下编译期保证);
不再使用 ArgumentError.checkNotNull(该 API 已废弃且在空安全下是死代码)。
Implementation
void setLocaleInfo(String locale, TimelineInfo timelineInfo) {
_timelineInfoMap[locale] = timelineInfo;
}