FileDownloader class

Main class that provides a platform-agnostic API for downloading files

Constructors

FileDownloader.new()
Factory constructor to return the singleton instance
factory

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
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
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