copyWith method
FileEntity
copyWith(
{ - XFile? pickedFile,
- Uint8List? bytes,
- String? path,
- String? fileName,
- String? mimeType,
- String? uploadingToastTxt,
- Map<String, dynamic>? queryParams,
- String? imgFieldName,
- String? urlFieldName,
- String? accessToken,
})
Implementation
FileEntity copyWith({
XFile? pickedFile,
Uint8List? bytes,
String? path,
String? fileName,
String? mimeType,
String? uploadingToastTxt,
Map<String, dynamic>? queryParams,
String? imgFieldName,
String? urlFieldName,
String? accessToken,
}) => FileEntity(
pickedFile: pickedFile ?? this.pickedFile,
bytes: bytes ?? this.bytes,
path: path ?? this.path,
fileName: fileName ?? this.fileName,
mimeType: mimeType ?? this.mimeType,
uploadingToastTxt: uploadingToastTxt ?? this.uploadingToastTxt,
queryParams: queryParams ?? this.queryParams,
imgFieldName: imgFieldName ?? this.imgFieldName,
urlFieldName: urlFieldName ?? this.urlFieldName,
accessToken: accessToken ?? this.accessToken,
);