RequestResult class

Inheritance
Available extensions

Constructors

RequestResult({required int statusCode, required dynamic data, required Map<String, dynamic> headers, required bool success, required String message})
const
RequestResult.fromJson(String source)
factory
RequestResult.fromMap(Map<String, dynamic> map)
factory

Properties

data → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
final
message String
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
final
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setteroverride
success bool
final

Methods

as<Type>() → Type

Available on Equatable, provided by the As extension

copyWith({int? statusCode, dynamic data, Map<String, dynamic>? headers, bool? success, String? message}) RequestResult
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited