Device class

A client device

Annotations
  • @_NameSource('spec')

Constructors

Device({required String deviceId, String? displayName, String? lastSeenIp, int? lastSeenTs})
Device.fromJson(Map<String, Object?> json)

Properties

deviceId String
Identifier of this device.
getter/setter pair
displayName String?
Display name set by the user for this device. Absent if no name has been set.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastSeenIp String?
The IP address where this device was last seen. (May be a few minutes out of date, for efficiency reasons).
getter/setter pair
lastSeenTs int?
The timestamp (in milliseconds since the unix epoch) when this devices was last seen. (May be a few minutes out of date, for efficiency reasons).
getter/setter pair
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, Object?>
toString() String
A string representation of this object.
inherited

Operators

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