hasId property

bool get hasId

Returns true if id is not null, otherwise false.

Implementation

bool get hasId => id != null;