RaliRoute constructor

RaliRoute({
  1. String? id,
  2. required String name,
  3. required String createdBy,
  4. required dynamic routeData,
  5. bool isPublic = false,
  6. List<String>? sharedWith,
  7. Timestamp? createdAt,
  8. List<String>? tags,
})

//////////// ////////////

Implementation

// II.B - Constructor
///////////////
RaliRoute({
  this.id,
  required this.name,
  required this.createdBy,
  required this.routeData,
  this.isPublic = false,
  List<String>? sharedWith,
  Timestamp? createdAt,
  List<String>? tags,
}) :
  sharedWith = sharedWith ?? [],
  createdAt = createdAt ?? Timestamp.now(),
  tags = tags ?? [];