copyWith method

SourceFile copyWith({
  1. String? uuid,
  2. String? modSourceInfoUUID,
  3. String? storageUUID,
  4. String? path,
  5. SourceFileType? type,
  6. List<String>? sources,
})

Implementation

SourceFile copyWith({
  String? uuid,
  String? modSourceInfoUUID,
  String? storageUUID,
  String? path,
  SourceFileType? type,
  List<String>? sources,
}) {
  return SourceFile(
    uuid: uuid ?? this.uuid,
    modSourceInfoUUID: modSourceInfoUUID ?? this.modSourceInfoUUID,
    storageUUID: storageUUID ?? this.storageUUID,
    path: path ?? this.path,
    type: type ?? this.type,
    sources: sources ?? this.sources,
  );
}