copyWith method

RaliRoute copyWith({
  1. String? name,
  2. dynamic routeData,
  3. bool? isPublic,
  4. List<String>? sharedWith,
  5. List<String>? tags,
})

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,
  );
}