PlatformUtils constructor
PlatformUtils()
Implementation
factory PlatformUtils() {
if (!_isInstantiation) {
_isAndroid = !kIsWeb && Platform.isAndroid;
_isIos = !kIsWeb && Platform.isIOS;
_isMobile = _isAndroid || _isIos;
_isWindows = !kIsWeb && Platform.isWindows;
_isMacOS = !kIsWeb && Platform.isMacOS;
_isLinux = !kIsWeb && Platform.isLinux;
_isDesktop = _isMacOS || _isWindows || _isLinux;
_isWeb = kIsWeb;
_isInstantiation = true;
}
return _instance;
}