download method Null safety

Future<NCMBFile> download(
  1. String fileName
)

Implementation

Future<NCMBFile> download(String fileName) async {
  NCMBRequest r = new NCMBRequest();
  Map response =
      await r.exec('GET', super.name, objectId: fileName, multipart: true);
  var f = NCMBFile();
  f.set('blob', response['data']);
  return f;
}