copyWith method

ServiceDto copyWith({
  1. String? name,
  2. List<InstanceDto>? instances,
})

Implementation

ServiceDto copyWith({
  String? name,
  List<InstanceDto>? instances,
}) {
  return ServiceDto(
    name ?? this.name,
    instances ?? this.instances,
  );
}