System Info
Search…
⌃K

operatingSystemName

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.