pauseUpload method Null safety

Future pauseUpload()

Pause an upload that is currently on

Note the last request wouldnt be stopped, yet.

Implementation

Future pauseUpload() async {
  //This function would be used to pause an upload.
  //Basically, all the requests are stopped.
  //The error callback is triggered after the pauseUpload is called.

  _fileUploadController.uploadPaused = true;
}