Authentication constructor

Authentication({
  1. Iterable<AuthenticationRule>? rules,
  2. Iterable<AuthProvider>? providers,
})

Implementation

factory Authentication({
  $core.Iterable<AuthenticationRule>? rules,
  $core.Iterable<AuthProvider>? providers,
}) {
  final _result = create();
  if (rules != null) {
    _result.rules.addAll(rules);
  }
  if (providers != null) {
    _result.providers.addAll(providers);
  }
  return _result;
}