in example/lib/main.dart [115:134]
void execute({custom = false}) async {
String result;
try {
result = custom
? await RecaptchaEnterprise.execute(RecaptchaAction.custom('foo'),
timeout: 10000)
: await RecaptchaEnterprise.execute(RecaptchaAction.LOGIN());
} on PlatformException catch (err) {
debugPrint('Caught platform exception on execute: $err');
result = 'Code: ${err.code} Message ${err.message}';
} catch (err) {
debugPrint('Caught exception on execute: $err');
result = err.toString();
}
setState(() {
_token = result;
});
}