copyWith method

GetUserLink copyWith({
  1. bool? removeMessagesFee,
  2. bool? returnPermanentLink,
  3. bool? revokePreviousLinks,
})

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

Implementation

GetUserLink copyWith({
  bool? removeMessagesFee,
  bool? returnPermanentLink,
  bool? revokePreviousLinks,
}) => GetUserLink(
  removeMessagesFee: removeMessagesFee ?? this.removeMessagesFee,
  returnPermanentLink: returnPermanentLink ?? this.returnPermanentLink,
  revokePreviousLinks: revokePreviousLinks ?? this.revokePreviousLinks,
);