send method

Sends a message to a phone number.

Implementation

Future<Iterable<Response>> send(
    Iterable<PhoneNumber> to, Message message) async {
  final results = await _withClient((client) async {
    final gateway = await strategy.select(gateways);
    return gateway.send(to, message, client);
  });

  return _retryFailed(results, message);
}