RecordedCall class

One call made against a FakeApiServices, captured for assertions.

Constructors

RecordedCall({required HttpMethod method, required String endpoint, Object? data, Map<String, dynamic>? params, Map<String, String>? headers, List<UploadFile> files = const [], String? tag, bool? retryable, Map<String, dynamic>? extra})
const

Properties

data → Object?
final
endpoint → String
final
extra → Map<String, dynamic>?
The extra map the call was made with.
final
files → List<UploadFile>
Files passed to upload. Empty for every other method.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
final
method → HttpMethod
final
params → Map<String, dynamic>?
final
retryable → bool?
The retryable flag the call was made with, or null if it left the decision to the method. Lets a test assert that a read-only POST is marked safe to retry.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String?
The tag the call was made under, or null if it was untagged. Lets a test assert that a screen's requests are tagged for cancellation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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