validOrNull property
Returns null
if this user i not valid i.e. id
is -1
.
Implementation
User? get validOrNull => id == -1 ? null : this;
Returns null
if this user i not valid i.e. id
is -1
.
User? get validOrNull => id == -1 ? null : this;