AuthenticationRule constructor
AuthenticationRule({
- String? selector,
- OAuthRequirements? oauth,
- bool? allowWithoutCredential,
- Iterable<
AuthRequirement> ? requirements,
Implementation
factory AuthenticationRule({
$core.String? selector,
OAuthRequirements? oauth,
$core.bool? allowWithoutCredential,
$core.Iterable<AuthRequirement>? requirements,
}) {
final _result = create();
if (selector != null) {
_result.selector = selector;
}
if (oauth != null) {
_result.oauth = oauth;
}
if (allowWithoutCredential != null) {
_result.allowWithoutCredential = allowWithoutCredential;
}
if (requirements != null) {
_result.requirements.addAll(requirements);
}
return _result;
}