NetworkError class
Represents a network-related error.
This class is used for handling network issues, such as connectivity problems.
error: AnIOExceptionthat provides details about the network issue.
- Inheritance
-
- Object
- NetworkResponse
- NetworkError
Constructors
- NetworkError({required IOException error})
-
Constructs a
NetworkErrorresponse with the given exception.const
Properties
- error → IOException
-
The
IOExceptionrepresenting the network error.final - 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