CompleterExtension<T> extension

on

Methods

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