idAsInt property

int idAsInt

Returns the id, parsed as an int.

Implementation

int get idAsInt => id != null ? int.tryParse(id!) ?? -1 : -1;