initializeResolver method

  1. @override
FutureOr<BuildContextResolver> initializeResolver()
override

Implementation

@override
FutureOr<BuildContextResolver> initializeResolver() {
  final resolver = ProviderBuildContextResolver();
  if (sunny is! SunnyCore) {
    sunny = SunnyCore(resolver: resolver);
  } else {
    sunny.core.resolver = resolver;
  }
  return resolver;
}