AdHocDevice class Null safety

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

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.
read / write
hashCode int
The hash code for this object.
read-only, inherited
label String?
Label of this remote node instance.
read-only
mac Identifier
MAC address of this remote node instance.
read-only
name String?
Device name of this remote node instance.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type int
Type of this remote node instance.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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