Request class

Class Request a request object, overrides the == operator and the hashcode using the url, query and type hashcode

Annotations
  • @immutable

Constructors

Request({required String url, required Query query, RequestType type = RequestType.none, Map<String, String>? headers})
Request class constructor

Properties

hashCode int
The hash code for this object.
no setteroverride
headers Map<String, String>
variable headers setting the content type and accept for the request
final
query Query
variable query
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RequestType
variable type
final
url String
variable url
final

Methods

copyWith({String? url, Query? query, RequestType? type}) Request
copyWith will copy Request into a new object, changing the variable values
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.
override