isRegistered<S> method

bool isRegistered<S>({
  1. String? tag,
})

Checks whether an instance of type S (and optionally with tag) is registered in memory.

  • tag Optional tag to identify the instance.

Implementation

bool isRegistered<S>({String? tag}) => _singl.containsKey(_getKey(S, tag));