FileUtils class
Android-only: reads/writes /sdcard/download/ directly rather than a path
resolved via path_provider. Kept as-is to match existing behavior —
there's no iOS equivalent of this path, so this class won't work there.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
downloadFile(
Uint8List? data, String? fileName) → Future< void> - hàm này để download file vào thư mục download trong thiết bị
-
getContentType(
String fileName) → String - hàm này dùng để lấy thông tin loại file
-
openDownloadFile(
String? fileName) → Future< void> - hàm này để mở file ở thư mục download trong thiết bị