copyWith method

  1. @override
CallStateDiscarded copyWith({
  1. CallDiscardReason? reason,
  2. bool? needRating,
  3. bool? needDebugInformation,
  4. bool? needLog,
})
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
CallStateDiscarded copyWith({
  CallDiscardReason? reason,
  bool? needRating,
  bool? needDebugInformation,
  bool? needLog,
}) => CallStateDiscarded(
  reason: reason ?? this.reason,
  needRating: needRating ?? this.needRating,
  needDebugInformation: needDebugInformation ?? this.needDebugInformation,
  needLog: needLog ?? this.needLog,
);