GetInfo class

Provides access to platform-specific device information.

The GetInfo class exposes static methods to retrieve device and OS details from Android, iOS, and Web platforms.

Example:

final androidVersion = await GetInfo.getAndroidVersion();

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

getAndroidId Future<String?>
Returns the unique Android ID for the device.
no setter
getAndroidVersion Future<String?>
Returns the Android OS version (e.g., 12, 13, 14).
no setter
getAndroidVersionCode Future<String?>
Returns the Android OS version code.
no setter
getBatteryPercentage Future<int?>
Returns the current battery percentage of the device.
no setter
getBoard Future<String?>
Returns the device board name.
no setter
getBootloader Future<String?>
Returns the device bootloader version.
no setter
getBrand Future<String?>
Returns the device brand (e.g., Samsung, Google, Xiaomi).
no setter
getDevice Future<String?>
Returns the device name or code name.
no setter
getDisplay Future<String?>
Returns the build display identifier.
no setter
getFingerprintInfo Future<String?>
Returns the device fingerprint information.
no setter
getHardware Future<String?>
Returns the device hardware name.
no setter
getId Future<String?>
Returns the unique device identifier provided by the platform.
no setter
getManufacturer Future<String?>
Returns the device manufacturer name.
no setter
getModel Future<String?>
Returns the device model name.
no setter
getSdkVersion Future<int?>
Returns the Android SDK version (API level).
no setter
isBatteryCharging Future<bool?>
Returns true if the device is currently charging.
no setter
isBluetoothEnabled Future<bool?>
Returns true if Bluetooth is enabled on the device.
no setter
isDeveloperOptionsEnabled Future<bool?>
Returns true if Developer Options are enabled.
no setter
isLocationEnabled Future<bool?>
Returns true if device location services are enabled.
no setter
isWifiEnabled Future<bool?>
Returns true if Wi-Fi is enabled on the device.
no setter

Static Methods

openBluetoothSettings() Future<bool?>
Opens the system Bluetooth settings screen.
openLocationSettings() Future<bool?>
Opens the system Location settings screen.
openWifiSettings() Future<bool?>
Opens the system Wi-Fi settings screen.