Endpoint class

Constructors

Endpoint({required String path, required HttpMethod httpMethod, Map<String, String> queryParameters = const <String, String>{}, Map<String, String> headers = const <String, String>{}, MIMEType contentType = MIMEType.application_json, MIMEType acceptType = MIMEType.application_json, bool resolveAgainstBaseURL = true, dynamic data})

Properties

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

Methods

copyWith({String? path, HttpMethod? httpMethod, Map<String, String>? queryParameters, Map<String, String>? headers, MIMEType? contentType, MIMEType? acceptType, bool? resolveAgainstBaseURL, dynamic data}) Endpoint
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.

Operators

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