DeviceMetadata class

Characteristics of the user's device.

Constructors

DeviceMetadata({String? cpuMake, String? cpuModel, String? deviceClass, int? glEsVersion, String? manufacturer, String? nativePlatform, String? productName, int? ramMb, int? screenDensityDpi, int? screenHeightPx, int? screenWidthPx})
DeviceMetadata.fromJson(Map json_)

Properties

cpuMake String?
Device CPU make, e.g. "Qualcomm"
getter/setter pair
cpuModel String?
Device CPU model, e.g. "MSM8974"
getter/setter pair
deviceClass String?
Device class (e.g. tablet)
getter/setter pair
glEsVersion int?
OpenGL version
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
manufacturer String?
Device manufacturer (e.g. Motorola)
getter/setter pair
nativePlatform String?
Comma separated list of native platforms (e.g. "arm", "arm7")
getter/setter pair
productName String?
Device model name (e.g. Droid)
getter/setter pair
ramMb int?
Device RAM in Megabytes, e.g. "2048"
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenDensityDpi int?
Screen density in DPI
getter/setter pair
screenHeightPx int?
Screen height in pixels
getter/setter pair
screenWidthPx int?
Screen width in pixels
getter/setter pair

Methods

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

Operators

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