hasRegister<T extends Object?> method

bool hasRegister<T extends Object?>([
  1. String? id
])
inherited

Checks if the T dependency with/without id is registered in Reactter.

Implementation

bool hasRegister<T extends Object?>([String? id]) {
  final DependencyRef dependencyRef = DependencyRef<T?>(id);
  return _dependencyRegisters.lookup(dependencyRef) != null;
}