copyWith method

BehaviorInstanceDependee copyWith({
  1. String? type,
  2. Relative? target,
  3. String? level,
})

Returns a copy of this object with its field values replaced by the ones provided to this method.

Implementation

BehaviorInstanceDependee copyWith({
  String? type,
  Relative? target,
  String? level,
}) {
  return BehaviorInstanceDependee(
    type: type ?? this.type,
    target: target ?? this.target.copyWith(),
    level: level ?? this.level,
  );
}