copyWith method

ExternalAuthOptions copyWith({
  1. String? clientId,
  2. String? clientSecret,
  3. dynamic redirectUri,
  4. Iterable<String> scopes = const [],
})

Creates a copy of this object, with the specified changes.

Implementation

ExternalAuthOptions copyWith(
    {String? clientId,
    String? clientSecret,
    redirectUri,
    Iterable<String> scopes = const []}) {
  return ExternalAuthOptions(
    clientId: clientId ?? this.clientId,
    clientSecret: clientSecret ?? this.clientSecret,
    redirectUri: redirectUri ?? this.redirectUri,
    scopes: (scopes).followedBy(this.scopes),
  );
}