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