ArCaptchaController constructor
ArCaptchaController({
- required String siteKey,
- String lang = 'en',
- String domain = 'localhost',
- String onErrorMessage = 'Something went wrong, try again!',
- int errorPrint = 0,
- double captchaWidth = 550,
- double captchaHeight = 550,
- Color color = Colors.black,
- ThemeMode theme = ThemeMode.light,
- 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.captchaWidth = 550,
this.captchaHeight = 550,
this.color = Colors.black,
this.theme = ThemeMode.light,
this.dataSize = DataSize.normal,
}) {
_htmlContent = _buildHtmlSection();
}