DeviceInfo class

A class representing device information.

This class provides common properties for device information such as device name, device model, operating system, and system version. It also includes a static method to asynchronously fetch device information based on the platform (Android or iOS).

Constructors

DeviceInfo({required String deviceName, required String deviceModel, required String operatingSystem, required String systemVersion, required String deviceUuid})
Constructs an instance of DeviceInfo.

Properties

deviceModel String
The model of the device.
final
deviceName String
The name of the device.
final
deviceUuid String
The UUID of the device.
final
hashCode int
The hash code for this object.
no setterinherited
operatingSystem String
The operating system of the device.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemVersion String
The system version of the device.
final

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 Methods

getDeviceInfo() Future<DeviceInfo>
Asynchronously fetches the device information.