FlioApiRequestOptions class

Options for configuring API requests.

Constructors

FlioApiRequestOptions({required String method, required Uri uri, required Map<String, String> headers, dynamic body, required Duration timeout})
Creates new request options.
const

Properties

body → dynamic
Request body.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Request headers.
final
method → String
HTTP method.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
Request timeout.
final
uri → Uri
Request URI.
final

Methods

copyWith({String? method, Uri? uri, Map<String, String>? headers, dynamic body, Duration? timeout}) → FlioApiRequestOptions
Creates a copy with modified properties.
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