getAppSupportPath static method

String? getAppSupportPath({
  1. String? category,
  2. String? fileName,
  3. String? format,
})

get Application Support Directory file path. fileName 文件名 format 文件格式,如果文件名包含格式,则不需要 category 分类,例如:video,image等等 String path = DirectoryUtil.getAppSupportPath(category: 'Pictures', fileName: 'demo.png'); String path = DirectoryUtil.getAppSupportPath(category: 'Pictures', fileName: 'demo', format: 'png'); Android: /data/user/0/com.thl.flustars_example/files/Pictures/demo.png iOS: xxx;

Implementation

static String? getAppSupportPath({
  String? category,
  String? fileName,
  String? format,
}) {
  return getPath(_appSupportDir,
      category: category, fileName: fileName, format: format);
}