StoredActivityFile constructor
- int localFileID = -1,
- int activityFileID = -1,
- int activityID = -1,
- ActivityFileType fileType = ActivityFileType.sensors,
- String fileUrl = '',
- String localPath = '',
- int fileSizeBytes = 0,
- int createdAtMillis = 0,
- Coordinates? coordinates,
Creates a StoredActivityFile.
The ids are assigned by the store; leave them at -1 when attaching a new file.
Implementation
StoredActivityFile({
this.localFileID = -1,
this.activityFileID = -1,
this.activityID = -1,
this.fileType = ActivityFileType.sensors,
this.fileUrl = '',
this.localPath = '',
this.fileSizeBytes = 0,
this.createdAtMillis = 0,
Coordinates? coordinates,
}) : coordinates = coordinates ?? Coordinates();