copyWith method
Creates a copy of this RaliRoute with optional parameter updates
Implementation
RaliRoute copyWith({
String? name,
dynamic routeData,
bool? isPublic,
List<String>? sharedWith,
List<String>? tags,
}) {
return RaliRoute(
id: id,
name: name ?? this.name,
createdBy: createdBy,
routeData: routeData ?? this.routeData,
isPublic: isPublic ?? this.isPublic,
sharedWith: sharedWith ?? this.sharedWith,
createdAt: createdAt,
tags: tags ?? this.tags,
);
}