listInFlightSends method
The IN-FLIGHT two-step (TEX) sends (#309): first leg signed + broadcast, send not yet complete — money is IN MOTION through a wallet-controlled one-time address. Drives the DURABLE wallet-screen "on its way — don't send it again" cue (the post-send result screen's caution is dismissible; without this, an in-flight two-step reads as an ordinary pending send exactly when a worried user is most tempted to re-pay). DISJOINT from listParkedSends (parked = queued, nothing signed; in-flight = signed + broadcast). A row leaves by three exits: completion, the strand transition (recoverableEphemeralFunds takes over — the two can OVERLAP while the unshield settles; both cues together is correct), or a return to the queue (every tx expired unmined — no money moved; it reappears parked, cancellable again). AMOUNT-only (§5.4 — no recipient/txid); the amount annotates the SAME pending payment the activity list shows — never double-count it. Cheap, LOCAL, no network; empty is the common case.
Implementation
@override
Future<List<InFlightSend>> listInFlightSends() {
listInFlightSendsCount++;
if (listInFlightSendsThrows != null) {
return Future<List<InFlightSend>>.error(listInFlightSendsThrows!);
}
return Future<List<InFlightSend>>.value(inFlightSendsResult);
}