XHHighlightMatchCore constructor

XHHighlightMatchCore({
  1. required List<XHHighlightMatch> matchList,
  2. required XHHighlightMatch unMatch,
})

构造方法

Implementation

XHHighlightMatchCore({required this.matchList, required this.unMatch}) {
  for (XHHighlightMatch item in matchList) {
    if (item.matchReg() != null) {
      _toMatchMap.putIfAbsent(item.matchType, () => item);
    }
  }
}