requireDeclared method
Throws DVUndeclaredApiScope when any of scopes is not declared.
Implementation
void requireDeclared(Iterable<String> scopes) {
final List<String> missing = undeclared(scopes);
if (missing.isNotEmpty) throw DVUndeclaredApiScope(missing, names);
}