resolve<T> method

  1. @override
T resolve<T>(
  1. BuildContext? context
)
override

Implementation

@override
T resolve<T>(BuildContext? context) {
  try {
    final inst = container.tryResolve<T>();
    return inst ?? super.resolve<T>(context);
  } on ProviderNotFoundException {
    throw "$T instance could not be found in the ReliveIt context or by using Provider";
  }
}