validatePinWithPolicy method

Future<bool> validatePinWithPolicy(
  1. String pin
)

Implementation

Future<bool> validatePinWithPolicy(String pin) async {
  try {
    var success = await Onegini.instance.channel.invokeMethod(
        Constants.validatePinWithPolicy, <String, String?>{'pin': pin});
    return success ?? false;
  } on TypeError catch (error) {
    throw PlatformException(
        code: Constants.wrapperTypeError.code.toString(),
        message: Constants.wrapperTypeError.message,
        stacktrace: error.stackTrace?.toString());
  }
}