findOrNull<S> static method

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

Retrieves the registered instance of type S, or returns null if not found.

  • tag: The unique identifier used during registration.

Implementation

static S? findOrNull<S>({String? tag}) {
  return currentScope.findOrNull<S>(tag: tag);
}