Device class
Device information
Constructors
- Device({String? name, String? resolution, String? manufacturer, String? model, String? modelId, int? memorySize, DateTime? bootTime, String? formFactor, String? orientation, bool? rooted, String? osName, String? osVersion, bool? emulated, String? architecture, int? freeMemory, int? internalStorageFreeSize, int? externalStorageFreeSize, int? batteryLevel, String? carrier, String? networkType, String? ip, bool? proxy, bool? vpn})
-
Device.fromJson(Map<
String, dynamic> json) -
factory
Properties
- architecture → String?
-
final
- batteryLevel → int?
-
final
- bootTime → DateTime?
-
final
- carrier → String?
-
final
- emulated → bool?
-
final
- externalStorageFreeSize → int?
-
final
- formFactor → String?
-
final
- freeMemory → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalStorageFreeSize → int?
-
final
- ip → String?
-
final
- manufacturer → String?
-
final
- memorySize → int?
-
final
- model → String?
-
final
- modelId → String?
-
final
- name → String?
-
final
- networkType → String?
-
final
- orientation → String?
-
final
- osName → String?
-
final
- osVersion → String?
-
final
- proxy → bool?
-
final
- resolution → String?
-
final
- rooted → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vpn → bool?
-
final
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