Device class
The class Device provides a peer information including Device.deviceId, Device.deviceName, Device.state
Constructors
- Device(String deviceId, String deviceName, int state)
- Device.fromJson(dynamic json)
-
factory
Properties
- deviceId ↔ String
-
Peer ID
getter/setter pair
- deviceName ↔ String
-
Peer name
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ SessionState
-
Provide peer state
See SessionState
getter/setter pair
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