isPresent property

bool get isPresent

True when this optional contains a value.

Implementation

bool get isPresent => _value != null;