ActivityRecord constructor

ActivityRecord({
  1. String shortDescription = '',
  2. String longDescription = '',
  3. SportType sportType = SportType.unknown,
  4. EffortType effortType = EffortType.easy,
  5. BikeProfileElectricBikeProfile? bikeProfile,
  6. ActivityVisibility visibility = ActivityVisibility.everyone,
})

Creates an ActivityRecord with the specified properties.

The constructor builds metadata that can be attached to a recording. All parameters are optional and have sensible defaults.

Parameters

Implementation

ActivityRecord({
  this.shortDescription = '',
  this.longDescription = '',
  this.sportType = SportType.unknown,
  this.effortType = EffortType.easy,
  this.bikeProfile,
  this.visibility = ActivityVisibility.everyone,
});