AuthenticationRule constructor

AuthenticationRule({
  1. String? selector,
  2. OAuthRequirements? oauth,
  3. bool? allowWithoutCredential,
  4. 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;
}