StubOfflineFirstRestResponse class
The expected response from a request.
Constructors
- StubOfflineFirstRestResponse.new(String response, {required String endpoint, StubHttpMethod? method})
- The expected response from a request.
- StubOfflineFirstRestResponse.fromFile(String filePath, {required String endpoint, StubHttpMethod? method})
-
factory
Properties
- endpoint → String
-
The path where the response should be returned. Avoid leading slashes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → StubHttpMethod
-
Limit this response to only return for a specific HTTP method;
defaults to
any
, meaning the response will be returned regardless of the request.final - response → String
-
The text returned from the HTTP request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
- currentDirectory → String
-
no setter