exists<T> method

bool exists<T>({
  1. String? tag,
})

Check if a dependency exists

Implementation

bool exists<T>({String? tag}) {
  return find<T>(tag: tag) != null;
}