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