sendSms method

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

Implementation

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