APIRequest class

Constructors

APIRequest(Uri uri, Map<String, String> headers, DataOperation operation, {Map<String, dynamic>? data})
const

Properties

data Map<String, dynamic>?
The serialized body of the request. If the request is set as GET, it will be set as query parameters. If it contains a body, it will be set as one
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The headers of the request
final
operation DataOperation
The type of request (GET, ADD, UPDATE, REMOVE)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
The URI of the request being made
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