launchSms method

Future<bool> launchSms(
  1. String? number, [
  2. String? body
])
inherited

Implementation

Future<bool> launchSms(String? number, [String? body]) {
  // ignore: parameter_assignments
  number ??= '';
  if (body != null) {
    final _body = Uri.encodeComponent(body);
    return launch('sms:/$number${separator}body=$_body');
  }
  return launch('sms:/$number');
}