send method

  1. @override
Future<Map<String, Object?>> send(
  1. Map<String, Object?> request
)
override

Sends an AppRequest, returning the decoded WalletResponse.

Implementation

@override
Future<Map<String, Object?>> send(Map<String, Object?> request) async {
  sentRequests.add(request);
  final failure = _takeFailure();
  if (failure != null) throw failure;
  final handler = onSend;
  if (handler != null) return handler(request);
  return {'result': 'te6ccg', 'id': request['id']};
}