validateEntry method
void
validateEntry(
- PillarEntry requestedEntry
)
override
Implementation
@override
void validateEntry(PillarEntry requestedEntry) {
final PillarScope? requestedEntryScope =
requestedEntry.effectiveScopeIncludingDependencies;
if (requestedEntryScope == null) return;
final PillarScope requestingEntryScope = requestingEntry.instanceScope!;
if (!requestingEntryScope.isOrChildOf(requestedEntryScope)) {
throw Exception(
'${requestingEntry.key} with $requestingEntryScope requesting for ${requestedEntry.key} with $requestedEntryScope, which is not accessible as $requestingEntryScope is not child scope of $requestedEntryScope',
);
}
}