isCompleted property

bool get isCompleted

Checks if the value has been set or if the CompleterOr is completed.

This is true if either the synchronous value is set or the CompleterOr has been completed through complete. When true, complete should not be called again.

Implementation

bool get isCompleted => _completer.isCompleted || _value != null;