copyWith method

UserLink copyWith({
  1. String? url,
  2. int? expiresIn,
  3. bool? canGetPermanentLink,
  4. dynamic extra,
  5. 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,
  bool? canGetPermanentLink,
  dynamic extra,
  int? clientId,
}) => UserLink(
  url: url ?? this.url,
  expiresIn: expiresIn ?? this.expiresIn,
  canGetPermanentLink: canGetPermanentLink ?? this.canGetPermanentLink,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);