resolve<T> method

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

Implementation

@override
T resolve<T>(BuildContext? context) {
  if (this is T) {
    return this as T;
  }
  try {
    context ??= AppBootstrap.currentContext();
  } catch (e) {
    throw "No current inner context found attempting to resolve $T";
  }
  return Provider.of(context, listen: false);
}