sendSms method

Future<void> sendSms({
  1. String? number,
  2. String? smsContent,
})

Implementation

Future<void> sendSms({String? number, String? smsContent}) async {
  final String result =
      await platform.invokeMethod('directSms', <String, dynamic>{
    "phone": number,
    "msg": smsContent,
  });
  log(result);
}