setContainerQueryText method

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

Modifies the expression of a container query. Returns: The resulting CSS container query rule after modification.

Implementation

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