closeGattOnDetach property

bool? closeGattOnDetach
getter/setter pair

Close the GATT client when the FlutterEngine is detached (for example, when the app is "killed"). The plugin otherwise leaves the GATT open, keeping the peripheral occupied until its supervision timeout; with autoConnect it also stays open for reconnection.

When null, the value set by a previous connect() on this engine is kept.

Implementation

bool? closeGattOnDetach;