copyWith method

FileEntity copyWith({
  1. XFile? pickedFile,
  2. Uint8List? bytes,
  3. String? path,
  4. String? fileName,
  5. String? mimeType,
  6. String? uploadingToastTxt,
  7. Map<String, dynamic>? queryParams,
  8. String? imgFieldName,
  9. String? urlFieldName,
  10. 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,
    );