platformName property

String get platformName

platform name

  • this name is kept track of by the platform
  • this name usually persist between app restarts
  • iOS: after you connect, iOS uses the GAP name characteristic (0x2A00) if it exists. Otherwise iOS use the advertised name.
  • Android: always uses the advertised name

Implementation

String get platformName => FlutterBluePlus._platformNames[remoteId] ?? "";