setPressureStateOverride method

Future<void> setPressureStateOverride(
  1. PressureSource source,
  2. PressureState state
)

Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled.

Implementation

Future<void> setPressureStateOverride(
    PressureSource source, PressureState state) async {
  await _client.send('Emulation.setPressureStateOverride', {
    'source': source,
    'state': state,
  });
}