download abstract method

void download({
  1. String? url,
  2. File? file,
  3. void onReceiveProgress(
    1. int received,
    2. int total,
    3. bool failed
    )?,
  4. void onDone()?,
})

Implementation

void download({
  String? url,
  File? file,
  void Function(int received, int total, bool failed)? onReceiveProgress,
  void Function()? onDone,
});