System Info
  • Welcome!
  • Installing
  • Quick Start
  • Reference
    • SysInfo
      • kernelArchitecture
      • kernelBitness
      • kernelName
      • kernelVersion
      • operatingSystemName
      • operatingSystemVersion
      • userDirectory
      • userId
      • userName
      • userSpaceBitness
      • cores
      • getTotalPhysicalMemory
      • getFreePhysicalMemory
      • getTotalVirtualMemory
      • getFreeVirtualMemory
      • getVirtualMemorySize
Powered by GitBook
On this page
  • operatingSystemName
  • Example:

Was this helpful?

  1. Reference
  2. SysInfo

operatingSystemName

PreviouskernelVersionNextoperatingSystemVersion

Last updated 3 years ago

Was this helpful?

operatingSystemName

Provides the name of your operating system.

Possible values are:

  • Ubuntu

  • MacOS

  • Windows

  • iOS

  • Android

Example:

import "package:system_info2/system_info2.dart";

print("Operating System name          : ${SysInfo.operatingSystemName}");

Please help expand the list of examples by raising an issue with examples on the .

onpub.dev github site