Skip to content

SystemInfo

Dan M edited this page Mar 31, 2022 · 2 revisions

The SystemInfo class provides easy access to the device's Platform and whether or not the app is in debug mode.


API

Enums

Platform

Represents each of the possible platforms the app may be running on:

Value Represents Equal To
android The app is running on an android device dart.io.Platform.isAndroid == true
ios The app is running on an iOS device dart.io.Platform.isIOS == true
web The app is running on a website dart.io.Platform.isWeb == true
windows The app is running on windows dart.io.Platform.isWindows == true
macOs The app is running on macOS dart.io.Platform.isMacOs == true
fuchisa The app is running Fuchisa dart.io.Platform.isFuchisa == true
linux The app is running on a Linux OS dart.io.Platform.isLinux == true
unknown The device the app is running on could not be recognised None of the above are true

Static Methods

static Platform getPlatform()

Returns a Platform based on the device the app is running on.

Static Getters

static bool get debugMode

Returns true if flutter foundation kDebugMode is true.

Clone this wiki locally