copyWith method

BuildingLevels copyWith({
  1. LevelId? defaultLevelId,
  2. List<LevelInfo>? levels,
})

Implementation

BuildingLevels copyWith({
  LevelId? defaultLevelId,
  List<LevelInfo>? levels
}) {
  return BuildingLevels(
    defaultLevelId: defaultLevelId ?? this.defaultLevelId,
    levels: levels ?? this.levels
  );
}