copyWith method

InfospectBreakpointCondition copyWith({
  1. String? id,
  2. InfospectBreakpointMatchTarget? target,
  3. InfospectBreakpointMatchOp? op,
  4. String? key,
  5. String? value,
  6. bool clearKey = false,
  7. bool clearValue = false,
})

Implementation

InfospectBreakpointCondition copyWith({
  String? id,
  InfospectBreakpointMatchTarget? target,
  InfospectBreakpointMatchOp? op,
  String? key,
  String? value,
  bool clearKey = false,
  bool clearValue = false,
}) {
  return InfospectBreakpointCondition(
    id: id ?? this.id,
    target: target ?? this.target,
    op: op ?? this.op,
    key: clearKey ? null : (key ?? this.key),
    value: clearValue ? null : (value ?? this.value),
  );
}