MobileFileDownloader class
Mobile implementation of FileDownloaderInterface
- Implemented types
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
-
checkPermission(
) → Future< bool> -
Checks if the app has permission to save files
Returns true if permission is granted, false otherwise
override
-
downloadFile(
{required String downloadUrl, String? fileName, String? token, DownloadMethod method = DownloadMethod.GET, ProgressCallback? onProgress, CompletedCallback? onCompleted, ErrorCallback? onError}) → Future< void> -
Downloads a file from the given URL
override
-
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