platform property
Gt3CaptchaViewPlatform
platform
Implementation
static Gt3CaptchaViewPlatform get platform {
if (_platform == null) {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
_platform = AndroidGt3CaptchaView();
break;
case TargetPlatform.iOS:
_platform = CupertinoGt3CaptchaView();
break;
default:
throw UnsupportedError(
"Trying to use the default webview implementation for $defaultTargetPlatform but there isn't a default one");
}
}
return _platform!;
}
Implementation
static set platform(Gt3CaptchaViewPlatform? platform) {
_platform = platform;
}