getMaxLine method

int getMaxLine()

Implementation

int getMaxLine() {
  RegExp exp = RegExp(r"ml-(\d+)");
  Match? match = exp.firstMatch(font);

  if (match != null) {
    return int.tryParse(match.group(1) ?? "") ?? 1;
  }
  return 1;
}