FlDownloader class
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 Properties
-
progressStream
→ Stream<
DownloadProgress> -
Stream that emits download progress and status updates
no setter
Static Methods
-
attachDownloadProgress(
dynamic downloadId) → Future< void> - Attach the download progress stream to an untracked download task.
-
cancel(
List downloadIds) → Future< int> - Cancels a list of ongoing downloads and return the number of canceled tasks
-
download(
String url, {Map< String, String> ? headers, String? fileName}) → Future - Create and starts a downlaod task on a local URLSession on iOS or on the system download manager on Android or on BITS on Windows
-
initialize(
) → Future< void> - Initializes the plugin and open the stream to listen to download progress
-
openFile(
{dynamic downloadId, String? filePath}) → Future< void> - Open the downlaoded file on the default file loader on each platform
-
requestPermission(
) → Future< StoragePermissionStatus> - Requests storage permission on Android