FakeGatewayClient class

In-memory GatewayClient for the rare test that wants to substitute the entire client (e.g. asserting that the SDK gates on notConfigured before calling the client).

Implemented types

Properties

closeCalls ↔ int
getter/setter pair
handler ↔ Future<GatewayHandoffResponse> Function(GatewayTransactionRequest request)?
Per-call handler. Defaults to returning a fixed approved response.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
requests → List<GatewayTransactionRequest>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Release any resources the client holds (sockets, queues). Idempotent and safe to call concurrently with an in-flight send.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(GatewayTransactionRequest request) → Future<GatewayHandoffResponse>
Send request and return a GatewayHandoffResponse. Throws GatewayError for any transport-level failure.
override
toString() → String
A string representation of this object.
inherited

Operators

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