detypifyKey method
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);
}
Returns key as int
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);
}