The model of the device found in the P2P network.
- Implementers
Constructors
- NearbyDevice({required NearbyDeviceInfo info, required NearbyDeviceStatus status})
-
The base device contains
info
andstatus
. These are parameters that devices will have independent of the platform.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- info → NearbyDeviceInfo
-
The minimum information about the device required
to display it in the list and connect to it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → NearbyDeviceStatus
-
The connection status of the device.
final
Methods
-
byPlatform<
T> ({T onAny(NearbyDevice)?, T onAndroid(NearbyAndroidDevice)?, T onIOS(NearbyIOSDevice)?}) → T? - If you want to get different data depending on the platform, use byPlatform.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override