triggersConfirmOnlyPairing property

bool triggersConfirmOnlyPairing
final

Returns true if the platform triggers pairing for devices that use only confirmation pairing (a.k.a. "Just Works" or legacy pairing) when trying to read or write to an encrypted characteristic.

The "Numeric Comparison" and "Passkey Entry" pairing methods trigger pairing on all platforms.

Web/Linux could also, under certain conditions, trigger "Just Works" pairing but it very unreliable, therefore we return false.

Implementation

static final triggersConfirmOnlyPairing =
    defaultTargetPlatform != TargetPlatform.windows &&
        defaultTargetPlatform != TargetPlatform.linux;