ArCaptchaController constructor

ArCaptchaController({
  1. required String siteKey,
  2. String lang = 'en',
  3. String domain = 'localhost',
  4. String onErrorMessage = 'Something went wrong, try again!',
  5. int errorPrint = 0,
  6. double captchaHeight = 550,
  7. Color color = Colors.black,
  8. ThemeMode theme = ThemeMode.light,
  9. DataSize dataSize = DataSize.normal,
})

Constructor initializes required fields and builds the HTML section.

Implementation

ArCaptchaController({
  required this.siteKey,
  this.lang = 'en',
  this.domain = 'localhost',
  this.onErrorMessage = 'Something went wrong, try again!',
  this.errorPrint = 0,
  this.captchaHeight = 550,
  this.color = Colors.black,
  this.theme = ThemeMode.light,
  this.dataSize = DataSize.normal,
}) {
  _htmlContent = _buildHtmlSection();
}