ActivityRecord constructor
ActivityRecord({
- String shortDescription = '',
- String longDescription = '',
- SportType sportType = SportType.unknown,
- EffortType effortType = EffortType.easy,
- BikeProfileElectricBikeProfile? bikeProfile,
- 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
shortDescription: A short title or summary for the activity. Defaults to an empty string.longDescription: A more detailed description or notes for the activity. Defaults to an empty string.sportType: The SportType for the activity. Defaults to SportType.unknown.effortType: The EffortType indicating the perceived intensity. Defaults to EffortType.easy.bikeProfile: Optional BikeProfileElectricBikeProfile used when the activity involves a bicycle or e-bike.visibility: The ActivityVisibility controlling who can view the activity. Defaults to ActivityVisibility.everyone.
Implementation
ActivityRecord({
this.shortDescription = '',
this.longDescription = '',
this.sportType = SportType.unknown,
this.effortType = EffortType.easy,
this.bikeProfile,
this.visibility = ActivityVisibility.everyone,
});