delete method Null safety

Future<bool> delete()
override

ファイルストアからファイルの削除

Implementation

Future<bool> delete() async {
  if (!super.hasKey('fileName')) {
    throw Exception('fileName is not found.');
  }
  NCMBRequest r = new NCMBRequest();
  Map res = await r.delete(super.name, super.getString('fileName'));
  return res.keys.length == 0;
}