setRuleSelector method

Future<SelectorList> setRuleSelector(
  1. StyleSheetId styleSheetId,
  2. SourceRange range,
  3. String selector
)

Modifies the rule selector. Returns: The resulting selector list after modification.

Implementation

Future<SelectorList> setRuleSelector(
    StyleSheetId styleSheetId, SourceRange range, String selector) async {
  var result = await _client.send('CSS.setRuleSelector', {
    'styleSheetId': styleSheetId,
    'range': range,
    'selector': selector,
  });
  return SelectorList.fromJson(
      result['selectorList'] as Map<String, dynamic>);
}