removeSmsUserConsentListener method

Future<bool> removeSmsUserConsentListener()

Disposes getSmsCode if useUserConsentApi is true listener

Implementation

Future<bool> removeSmsUserConsentListener() async {
  try {
    if (_isAndroid('removeSmsUserConsentListener')) {
      final res = await _channel.invokeMethod(Methods.stopSmsUserConsent);
      return res == true;
    }
  } catch (error) {
    debugPrint(
      'Pinput/SmartAuth: removeSmsUserConsentListener failed: $error',
    );
  }
  return false;
}