DeviceInfo class

A class representing the device and application information.

Constructors

DeviceInfo.new({required String? deviceId, required String deviceName, required String deviceBrand, required String osVersion, required String manufacturer, required String model, required String appVersionName, required int appVersionCode})
Creates an instance of DeviceInfo with the given properties.

Properties

appVersionCode int
final
appVersionName String
final
deviceBrand String
final
deviceId String?
final
deviceName String
final
hashCode int
The hash code for this object.
no setterinherited
manufacturer String
final
model String
final
osVersion String
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
toJson() Map<String, dynamic>
Converts the DeviceInfo instance to a JSON object.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

create() Future<DeviceInfo>
Asynchronously creates an instance of DeviceInfo by fetching the device and application information.