queryHandler method
Non-command messages. WalletOwnershipQuery is answered from this aggregate's state (bead libspiffy-29t): the mailbox is FIFO, so the answer reflects every command handled before it, including an address generation already acknowledged to its caller.
Implementation
@override
Future<void> queryHandler(dynamic message) async {
if (message is WalletOwnershipQuery) {
// ignore: invalid_use_of_internal_member
context.sender?.tell(_answerOwnership(message));
return;
}
if (message is WalletSpendableUtxosQuery) {
// ignore: invalid_use_of_internal_member
context.sender?.tell(_answerSpendableUtxos(message));
return;
}
await super.queryHandler(message);
}