hasValue property

bool get hasValue

Returns true if the current value is not null.

Implementation

bool get hasValue => value != null;