setUploadTask method Null safety

void setUploadTask(
  1. String requestId,
  2. AsyncSimpleTask task
)

Implementation

void setUploadTask(String requestId, AsyncSimpleTask task) =>
    _uploads[requestId] = task;