idAsInt property

int idAsInt

Returns the id, parsed as an int.

Implementation

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