Gt4FlutterPlugin constructor
Gt4FlutterPlugin(
- String captchaId, [
- GT4SessionConfiguration? config
Implementation
Gt4FlutterPlugin(String captchaId, [GT4SessionConfiguration? config]) {
try {
_channel.invokeMethod(
'initWithCaptcha',
{'captchaId': captchaId, 'config': config?.toMap()}
..removeWhere((key, value) => value == null));
} catch (e) {
debugPrint(flutterLog + e.toString());
}
}