CompleterExtension<T> extension

on

Methods

completeErrorSafe(Object error, [StackTrace? stackTrace]) bool

Available on Completer, provided by the CompleterExtension extension

Calls completeError only if ![isCompleted] and returns true, otherwise just returns false.
completeSafe([FutureOr<T>? value]) bool

Available on Completer, provided by the CompleterExtension extension

Calls complete only if ![isCompleted] and returns true, otherwise just returns false.