getUrlThreatType property
UrlThreatType
get
getUrlThreatType
Obtains the corresponding UrlThreatType of the urlCheckResult.
Implementation
UrlThreatType get getUrlThreatType {
if (_urlCheckResult == 1) {
return UrlThreatType.malware;
} else if (_urlCheckResult == 3) {
return UrlThreatType.phishing;
} else {
throw ('Unsupported urlCheckResult value');
}
}