enableBluetooth method
Stop advertising
askUser
ONLY AVAILABLE ON ANDROID SDK < 33
If set to false, it will enable bluetooth without asking user.
Implementation
Future<bool> enableBluetooth({bool askUser = true}) async {
if (!Platform.isAndroid) return false;
return await _methodChannel.invokeMethod<bool>(
'enableBluetooth',
askUser,
) ??
false;
}