init method

void init(
  1. bool isShowLog
)

Implementation

void init(bool isShowLog) {
  this.isShowLog = isShowLog;
  _startLine = "$_split$_title$_split";
  var endLineStr = StringBuffer();
  var cnCharReg = RegExp("[\u4e00-\u9fa5]");
  for (int i = 0; i < _startLine.length; i++) {
    if (cnCharReg.stringMatch(_startLine[i]) != null) {
      endLineStr.write(_separator);
    }
    endLineStr.write(_separator);
  }
  _endLine = endLineStr.toString();
}