disableLogForwarding static method
Stops forwarding log lines and drops the listener. Idempotent.
Implementation
static Future<void> disableLogForwarding() async {
try {
await _channel.invokeMethod('disableLogForwarding');
} catch (_) {
// Already gone; clearing the listener below is what matters.
}
await NativeBackend.stopListeningForLogs();
}