handleMethodCall method
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'sendSMS':
return sendSMS(call.arguments['address'].toString(),
call.arguments['body'].toString());
default:
throw PlatformException(
code: 'Unimplemented',
details: 'sms_flutter for web doesn\'t implement \'${call.method}\'',
);
}
}