isCompleted property Null safety
Whether the complete or completeError have been called.
Once this completer has been completed with either a result or error, neither method may be called again.
If complete was called with a Future argument, this completer may be completed before it's operation is completed. In that case the operation may still be canceled before the result is available.
Implementation
bool get isCompleted => !_mayComplete;