assertInstallableScope function

void assertInstallableScope(
  1. PluginScope scope
)

Assert that a scope is a valid installable scope.

Implementation

void assertInstallableScope(PluginScope scope) {
  if (!validInstallableScopes.contains(scope)) {
    throw ArgumentError(
      'Invalid scope "${scope.name}". Must be one of: '
      '${validInstallableScopes.map((s) => s.name).join(', ')}',
    );
  }
}