DownloadFileOptions class

This model is used to define a variant of useful values that are used to download files

Constructors

DownloadFileOptions({required String downloadUrl, required String fileName, String? customSavePath})
DownloadFileOptions.fromJson(String source)
factory
DownloadFileOptions.fromMap(Map<String, dynamic> map)
factory

Properties

customSavePath String?
Set this value if you want to save the file in a specific part
final
downloadUrl String
URL that the file should be downloaded from
final
fileName String
The name of the file with which the file should be saved with
final
getSavePath String
The final generated save path that should be used after the application documents directory to save the file
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? downloadUrl, String? fileName, String? customSavePath}) DownloadFileOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant DownloadFileOptions other) bool
The equality operator.
override