copyWith method

TonCenterStreamingApiUrl 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

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