Future<Reply> divertEvents(bool on, {int timeoutSeconds: 10})

Source

Future<Reply> divertEvents(bool on, {int timeoutSeconds: 10}) =>
    _subscribeAndSendCommand('divert_events ${on ? 'on': 'off'}',
        new Duration(seconds: timeoutSeconds));