copyWith method

SubDestination copyWith({
  1. String? name,
  2. String? id,
})

Implementation

SubDestination copyWith({String? name, String? id}) {
  return SubDestination(name: name ?? this.name, id: id ?? this.id);
}