copyWith method

RouteLevelInfo copyWith({
  1. Optional<LevelId?>? beginId,
  2. Optional<LevelId?>? endId,
  3. String? name,
})

Implementation

RouteLevelInfo copyWith({
  Optional<LevelId?>? beginId,
  Optional<LevelId?>? endId,
  String? name
}) {
  return RouteLevelInfo(
    beginId: beginId != null ? beginId.value : this.beginId,
    endId: endId != null ? endId.value : this.endId,
    name: name ?? this.name
  );
}