failId method

void failId(
  1. Object error
)
inherited

Completes this resource ID with an error when registration fails.

Implementation

void failId(Object error) {
  if (_idCompleter.isCompleted) {
    return;
  }
  final exception = error is Exception ? error : Exception(error.toString());
  _idCompleter.completeError(exception);
}