stop method
Stop advertising
Implementation
Future<BluetoothPeripheralState> stop() async {
final response = await _methodChannel.invokeMethod<int>('stop');
return response == null
? BluetoothPeripheralState.unknown
: BluetoothPeripheralState.values[response];
}