detypifyKey method

int? detypifyKey()

Returns key as int

Implementation

int? detypifyKey() {
  final [_, key] = split('#');
  if (key.isEmpty) {
    // enters here if there is only a type, e.g. `people`
    return null;
  }
  return int.parse(key);
}