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