hasValidId property

bool get hasValidId

Returns true id is not null and is not empty.

Implementation

bool get hasValidId => id != null && id!.trim().isEmpty;