SimulateResponse class

Class to simulate server response

Constructors

SimulateResponse.new({dynamic data, Map? headers, int statusCode = 200})

Properties

data → dynamic
raw data from server
final
hashCode int
The hash code for this object.
no setterinherited
headers Map?
Headers of server response
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
Status code for server response
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