requestPermission method
Requests the SEND_SMS permission, resolving to whether it was granted.
Implementation
@override
Future<bool> requestPermission() async {
try {
final granted = await methodChannel.invokeMethod<bool>(
'requestPermission',
);
return granted ?? false;
} on PlatformException catch (e) {
throw _asTelephonySmsException(e);
} on MissingPluginException {
throw _unsupportedPlatform();
}
}