launchSmsMulti method

Future<bool> launchSmsMulti(
  1. List<String> numbers, [
  2. String? body
])
inherited

Implementation

Future<bool> launchSmsMulti(List<String> numbers, [String? body]) {
  if (numbers.length == 1) {
    return launchSms(numbers.first, body);
  }
  String _phones = numbers.join(';');
  if (body != null) {
    final _body = Uri.encodeComponent(body);
    return launch('sms:/open?addresses=$_phones${separator}body=$_body');
  }
  return launch('sms:/open?addresses=$_phones');
}