copyWith method

ApartmentRange copyWith({
  1. String? start,
  2. Optional<String?>? end,
})

Implementation

ApartmentRange copyWith({
  String? start,
  Optional<String?>? end
}) {
  return ApartmentRange(
    start: start ?? this.start,
    end: end != null ? end.value : this.end
  );
}