isRegistered<S> method

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

Check if a Class Instance<S> (or tag) is registered in memory.

  • tag is optional, if you used a tag to register the Instance.

Implementation

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