Use the Directory createTemp() method to create a temporary directory. This method appends random characters to the name of the directory to produce a unique directory name.
import 'dart:io'; main() async { var directory = await Directory.systemTemp.createTemp('my_temp_dir'); print(directory.path); }
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did129443