setMediaText method

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

Modifies the rule selector. Returns: The resulting CSS media rule after modification.

Implementation

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