# getPodProviderType method

1. @protected

Future<Class?> getPodProviderType(

1. PodProvider provider,
2. bool allowPodProviderInit

)

## Implementation

    @protected
    Future<Class?> getPodProviderType(PodProvider provider, bool allowPodProviderInit) async {
      final cls = provider.getClass();

      if (cls != null) {
        return cls;
      }

      if (allowPodProviderInit) {
        final result = await provider.get();
        return result?.getType();
      }

      return null;
    }