parseTypeN static method

int parseTypeN(
  1. String type
)

Parse N from type

Implementation

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