MockReplyParams class
MockReplyParams is used to configure a mock request reply.
Constructors
- MockReplyParams({required String mockPath, HttpStatusEnum status = HttpStatusEnum.ok, Duration delay = const Duration(seconds: 1)})
-
const
Properties
- delay → Duration
-
delay is the delay before returning the mock response.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mockPath → String
-
mockPath is the path to the mock file.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → HttpStatusEnum
-
status is the HTTP status code to return.
final
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