deleteFile static method

Future<void> deleteFile(
  1. String path
)

删除文件。

Implementation

static Future<void> deleteFile(String path) async {
  File file = File(path);
  await file.delete();
}