isPWA property
Determines if the web app is an installed PWA or not.
Implementation
bool get isPWA {
var queries = [
'(display-mode: fullscreen)',
'(display-mode: standalone)',
'(display-mode: minimal-ui),'
];
var pwaDetected = false;
for (var query in queries) {
pwaDetected = pwaDetected || web.window.matchMedia(query).matches;
}
return pwaDetected;
}