parseTypeN function

int parseTypeN(
  1. String type
)

Parse N from type

Implementation

int parseTypeN(String type) {
  return int.parse(RegExp(r'^\D+(\d+)$').firstMatch(type)!.group(1)!, radix: 10);
}