Gt4FlutterPlugin constructor

Gt4FlutterPlugin(
  1. String captchaId, [
  2. 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());
  }
}