setSupportsText method

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

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

Implementation

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