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
extramap 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
retryableflag the call was made with, ornullif it left the decision to the method. Lets a test assert that a read-onlyPOSTis marked safe to retry.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String?
-
The
tagthe call was made under, ornullif 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