Method: onActionButtonPressed
Description
Handles taps on the action button in the [AppBar].
This button is used to start or stop the Bluetooth scan. If a scan is in progress, as determined by the [_scanInProgress] boolean value, the function stops the scan. If, on the other hand, there is not a scan in progress, a scan is started.
Return Type
void