isSecureContext static method
Check if running in secure context (HTTPS)
Implementation
static bool isSecureContext() {
try {
return web.window.isSecureContext;
} catch (_) {
return false;
}
}
Check if running in secure context (HTTPS)
static bool isSecureContext() {
try {
return web.window.isSecureContext;
} catch (_) {
return false;
}
}