currentOSType property

UpgraderOSType currentOSType

Implementation

UpgraderOSType get currentOSType {
  if (_currentOSType != null) return _currentOSType!;
  _currentOSType = isAndroid
      ? UpgraderOSType.android
      : isFuchsia
          ? UpgraderOSType.fuchsia
          : isIOS
              ? UpgraderOSType.ios
              : isLinux
                  ? UpgraderOSType.linux
                  : isMacOS
                      ? UpgraderOSType.macos
                      : isWeb
                          ? UpgraderOSType.web
                          : isWindows
                              ? UpgraderOSType.windows
                              : UpgraderOSType.android;
  return _currentOSType ?? UpgraderOSType.android;
}