upload abstract method

Future<FileInfo?> upload(
  1. String id,
  2. dynamic file, {
  3. dynamic onSent(
    1. int sent,
    2. int total
    )?,
  4. dynamic onFail(
    1. dynamic
    )?,
})

Implementation

Future<FileInfo?> upload(
  String id,
  file, {
  Function(int sent, int total)? onSent,
  Function(dynamic)? onFail,
});