SystemInfo class

Contains system information about the current device.

Constructors

SystemInfo({required DevicePlatform platform, required DeviceType deviceType, String? osVersion})
Creates a SystemInfo instance.
const

Properties

deviceType → DeviceType
The device type (phone or tablet).
final
hashCode → int
The hash code for this object.
no setteroverride
osVersion → String?
The operating system version, if available.
final
platform → DevicePlatform
The device platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override