completeRegistration<T extends Object> method

  1. @protected
void completeRegistration<T extends Object>(
  1. T value,
  2. Entity<Object>? groupEntity
)
inherited

Implementation

@protected
void completeRegistration<T extends Object>(
  T value,
  Entity? groupEntity,
) {
  final completer = (completers?.registry
          .getDependencyOrNull<CompleterOr<FutureOr<T>>>(
            groupEntity: groupEntity,
          )
          ?.value ??
      completers?.registry
          .getDependencyOrNullK(
            Entity.type(CompleterOr<Object>, [value.runtimeType]),
            groupEntity: groupEntity,
          )
          ?.value ??
      completers?.registry
          .getDependencyOrNullK(
            Entity.type(CompleterOr<Future<Object>>, [value.runtimeType]),
            groupEntity: groupEntity,
          )
          ?.value) as CompleterOr?;
  completer?.complete(value);
}