httpUploadFile<T> abstract method

Future<SyncHttpResponse<T>> httpUploadFile<T>(
  1. String url,
  2. String filePath, {
  3. String? fileName,
  4. Map<String, dynamic>? fields,
  5. Map<String, dynamic>? headers,
  6. void onProgress(
    1. int sent,
    2. int total
    )?,
  7. Duration? timeout,
})

Implementar upload de arquivos

Implementation

Future<SyncHttpResponse<T>> httpUploadFile<T>(
  String url,
  String filePath, {
  String? fileName,
  Map<String, dynamic>? fields,
  Map<String, dynamic>? headers,
  void Function(int sent, int total)? onProgress,
  Duration? timeout,
});