setScopeText method

Future<CSSScope> setScopeText(
  1. StyleSheetId styleSheetId,
  2. SourceRange range,
  3. String text
)

Modifies the expression of a scope at-rule. Returns: The resulting CSS Scope rule after modification.

Implementation

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