copyWith method

CheckAuthenticationWebToken copyWith({
  1. String? token,
  2. int? dcId,
})

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

Implementation

CheckAuthenticationWebToken copyWith({String? token, int? dcId}) =>
    CheckAuthenticationWebToken(
      token: token ?? this.token,
      dcId: dcId ?? this.dcId,
    );