sentBluetoothBroadcastData static method
Implementation
static Future<dynamic> sentBluetoothBroadcastData({required String type,String? data}){
// if(!_isOn){
// return Future(() => (){});
// }
if(data == null){
return sendChannel.invokeMethod("bluetooth_broadcast", {"type":type});
}else{
return sendChannel.invokeMethod("bluetooth_broadcast", {"type":type,"data":data});
}
}