Session constructor

Session({
  1. required int id,
  2. String? clid,
  3. required String date,
  4. String? startTime,
  5. String? endTime,
  6. String? location,
  7. int? locationId,
  8. String? locationClid,
  9. bool? isIndoor,
  10. ClimbType? climbType,
  11. SessionType? sessionType,
  12. List<String>? partners,
  13. Weather? weather,
  14. String? notes,
  15. RockType? rockType,
  16. TerrainType? terrainType,
  17. int? approachTime,
  18. bool isOngoing = false,
  19. Map<String, dynamic>? customFields,
})

Creates a new Session instance

Implementation

Session({
  required this.id,
  this.clid,
  required this.date,
  this.startTime,
  this.endTime,
  this.location,
  this.locationId,
  this.locationClid,
  this.isIndoor,
  this.climbType,
  this.sessionType,
  this.partners,
  this.weather,
  this.notes,
  this.rockType,
  this.terrainType,
  this.approachTime,
  this.isOngoing = false,
  this.customFields,
});