HttpResponse class
The response for KhaltiClient.
- Implementers
Constructors
- HttpResponse.exception({required String message, required int code, required StackTrace stackTrace, Object? detail, bool isSocketException})
-
Factory for ExceptionHttpResponse.
factory
- HttpResponse.failure({required Object data, required int statusCode})
-
Factory for FailureHttpResponse.
factory
- HttpResponse.success({required Object data, required int statusCode})
-
Factory for
SuccessHttpResponse
.factory
Properties
- data → Object?
-
The data received.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
The error message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The statusCode of response.
final
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