isPresent property

bool isPresent

Whether the Optional contains a value.

Implementation

bool get isPresent => _value != null;