AdHocDevice class
Class representing a generic ad hoc device. It represents a remote device with the Wi-Fi Direct, Bluetooth Low Energy, or both technology enabled.
- Annotations
-
- @JsonSerializable()
Constructors
- AdHocDevice({String? label, String? address, String? name, Identifier? mac, int type = -1})
- Creates an AdHocDevice object.
-
AdHocDevice.fromJson(Map<
String, dynamic> json) -
Factory constructor that creates an AdHocDevice object from a JSON
representation (
json
).factory
Properties
- address ↔ String?
-
Address of the remote device.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String?
-
Label of this remote node instance.
no setter
- mac → Identifier
-
MAC address of this remote node instance.
no setter
- name → String?
-
Device name of this remote node instance.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → int
-
Type of this remote node instance.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns the JSON representation as a Map of this AdHocDevice instance.
-
toString(
) → String -
A string representation of this object.
override
-
typeAsString(
) → String - Returns a string representation of this remote device's type.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited