copyWith method

  1. @override
UpdateTermsOfService copyWith({
  1. String? termsOfServiceId,
  2. TermsOfService? termsOfService,
  3. dynamic extra,
  4. int? clientId,
})
override

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

Implementation

@override
UpdateTermsOfService copyWith({
  String? termsOfServiceId,
  TermsOfService? termsOfService,
  dynamic extra,
  int? clientId,
}) =>
    UpdateTermsOfService(
      termsOfServiceId: termsOfServiceId ?? this.termsOfServiceId,
      termsOfService: termsOfService ?? this.termsOfService,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );