update method

void update({
  1. String text = "",
  2. Map<String, dynamic> wordsPinyinMap = const {},
  3. List<List<int>> markRanges = const [],
})

更新内容 text 文本 wordsPinyinMap 拼音字标注

Implementation

void update(
    {String text = "", Map<String, dynamic> wordsPinyinMap = const {}, List<List<int>> markRanges = const []}) {
  content = text;
  pinyinMap = wordsPinyinMap;
  notifierLazy();
}