DeviceInfo class

A device in a database's roster, as reported by Database.devices().

Constructors

DeviceInfo({required String id, required String label, required DateTime pairedAt, required bool revoked, required bool isThisDevice, DateTime? lastSeen})
Creates a device summary.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
The device fingerprint.
final
isThisDevice → bool
Whether this record is the device asking.
final
label → String
The human-readable label.
final
lastSeen → DateTime?
When the device was last seen on the transport, or null if not tracked yet (the handshake does not carry the device id until a later step).
final
pairedAt → DateTime
When the device joined the roster.
final
revoked → bool
Whether the device has been revoked.
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
toString() → String
A string representation of this object.
inherited

Operators

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