copyWith method

UserLink copyWith({
  1. String? url,
  2. int? expiresIn,
  3. dynamic extra,
  4. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

UserLink copyWith({
  String? url,
  int? expiresIn,
  dynamic extra,
  int? clientId,
}) =>
    UserLink(
      url: url ?? this.url,
      expiresIn: expiresIn ?? this.expiresIn,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );