copyWith method

FloorsInfo copyWith({
  1. int? groundCount,
  2. Optional<int?>? groundMinCount,
  3. Optional<int?>? undergroundCount,
})

Implementation

FloorsInfo copyWith({
  int? groundCount,
  Optional<int?>? groundMinCount,
  Optional<int?>? undergroundCount
}) {
  return FloorsInfo(
    groundCount: groundCount ?? this.groundCount,
    groundMinCount: groundMinCount != null ? groundMinCount.value : this.groundMinCount,
    undergroundCount: undergroundCount != null ? undergroundCount.value : this.undergroundCount
  );
}