copyWith method

SpecialSpace copyWith({
  1. SpecialSpaceType? type,
  2. String? name,
  3. Optional<String?>? count,
})

Implementation

SpecialSpace copyWith({
  SpecialSpaceType? type,
  String? name,
  Optional<String?>? count
}) {
  return SpecialSpace(
    type: type ?? this.type,
    name: name ?? this.name,
    count: count != null ? count.value : this.count
  );
}