isPodProvider method
Checks if the specified pod name refers to a pod provider.
Pod providers are special pods that can create other pods. This method checks if the given pod name corresponds to a provider.
Usage Example:
if (await factory.isPodProvider('serviceProvider')) {
print('serviceProvider is a pod provider');
}
@param podName The name of the pod to check @param rpd Optional root pod definition for direct checking @return A Future that completes with true if the pod is a provider
Implementation
@override
Future<bool> isPodProvider(String podName, [RootPodDefinition? rpd]) async {
final f = getPodFactory();
if (await f.isPodProvider(podName, rpd)) {
return true;
}
if (_parent != null) {
return await _parent!.getPodFactory().isPodProvider(podName, rpd);
}
return false;
}