FileResource constructor
FileResource({
- String? id,
- required String elementId,
- required String formInstance,
- required String elementType,
- String? resourceId,
- String? name,
- required String contentType,
- String? contentLength,
- required String? storageStatus,
- required String localFilePath,
- bool? synced,
- bool? syncFailed,
- String? lastSyncSummary,
- String? lastSyncDate,
- String? created,
- String? lastUpdated,
- required bool dirty,
Implementation
FileResource(
{String? id,
required this.elementId,
required this.formInstance,
required this.elementType,
this.resourceId,
String? name,
required this.contentType,
this.contentLength,
required this.storageStatus,
required this.localFilePath,
this.synced,
this.syncFailed,
this.lastSyncSummary,
this.lastSyncDate,
String? created,
String? lastUpdated,
required bool dirty})
: super(
id: id,
name: name,
dirty: dirty,
created: created,
lastUpdated: lastUpdated) {
this.id = this.id ?? '${this.formInstance}_${this.elementId}';
this.name = this.name ?? this.localFilePath;
}