copyWith method

RenderedObject copyWith({
  1. MapObject? item,
  2. Source? source,
  3. Optional<LevelId?>? levelId,
})

Implementation

RenderedObject copyWith({
  MapObject? item,
  Source? source,
  Optional<LevelId?>? levelId
}) {
  return RenderedObject(
    item: item ?? this.item,
    source: source ?? this.source,
    levelId: levelId != null ? levelId.value : this.levelId
  );
}