UDownloadError class
A failure described without the URL, so it is safe to show and to log.
- Implemented types
Constructors
- UDownloadError(UDownloadErrorCode code, {int? statusCode, String? message})
-
const
-
UDownloadError.fromJson(Map<
String, dynamic> json) -
Reads it from JSON.
factory
Properties
- code → UDownloadErrorCode
-
Kind of failure.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRetryable → bool
-
True when trying again may work.
no setter
- message → String?
-
Human-readable reason.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
HTTP status, if any.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - As JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited