setRecording method
Set the recording state for the service.
Implementation
Future<void> setRecording(bool shouldRecord, ServiceName service) async {
await _client.send('BackgroundService.setRecording', {
'shouldRecord': shouldRecord,
'service': service,
});
}