NearbyDeviceInfo class final
Minimal information about the device.
Constructors
- NearbyDeviceInfo({required String displayName, required String id})
-
Used to connect to the device via id.
Depending on the platform, id means different parameters.
const
-
NearbyDeviceInfo.fromJson(Map<
String, dynamic> ? json) -
Get NearbyDeviceInfo from Map.
factory
Properties
- displayName → String
-
The name of the device in the context of a P2P network.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Depending on the platform, id means different parameters.
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
-
toJson(
) → Map< String, dynamic> - Get Map from NearbyDeviceInfo.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override