openDownloadFile static method

Future<void> openDownloadFile(
  1. String? fileName
)

hàm này để mở file ở thư mục download trong thiết bị

Implementation

static Future<void> openDownloadFile(String? fileName) async {
  /// nếu không có fileName thì không làm gì cả
  if (fileName.isNullOrEmpty) return;

  /// thực hiện mở file ở thư mục download
  String filePath = "$_downloadDirectory$fileName";
  await KatOpenFile.open(filePath);
}