NearbyDeviceInfo constructor

const NearbyDeviceInfo({
  1. required String displayName,
  2. required String id,
})

Used to connect to the device via id. Depending on the platform, id means different parameters.

  • For Android id is the MAC address of the device.
  • For IOS id is the MCPeerID passed from the IOS platform.

Implementation

const NearbyDeviceInfo({
  required this.displayName,
  required this.id,
});