$find<S> method

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

Finds an Instance of the required Class <S>(or tag) Returns null if not found.

Implementation

S? $find<S>({String? tag}) {
  try {
    return GetInstance().find<S>(tag: tag);
  } catch (e) {
    return null;
  }
}