setSemantics method

Future<bool> setSemantics (bool enabled, { Duration timeout })

Turns semantics on or off in the Flutter app under test.

Returns true when the call actually changed the state from on to off or vice versa.

Implementation

Future<bool> setSemantics(bool enabled, { Duration timeout }) async {
  final SetSemanticsResult result = SetSemanticsResult.fromJson(await _sendCommand(SetSemantics(enabled, timeout: timeout)));
  return result.changedState;
}