FileRequest constructor

FileRequest(
  1. String method,
  2. Uri url, [
  3. void onProgress(
    1. int bytes,
    2. int totalBytes
    )?,
  4. Client? client,
])

Creates a new MultipartRequest.

Implementation

FileRequest(
  String method,
  Uri url, [
  this.onProgress,
  this.client,
]) : super(method, url) {
  if (this.client == null) {
    this.client = kIsWeb ? BrowserClient() : IOClient(HttpClient());
  }
}