setStyleSheetText method

Future<String> setStyleSheetText(
  1. StyleSheetId styleSheetId,
  2. String text
)

Sets the new stylesheet text. Returns: URL of source map associated with script (if any).

Implementation

Future<String> setStyleSheetText(
    StyleSheetId styleSheetId, String text) async {
  var result = await _client.send('CSS.setStyleSheetText', {
    'styleSheetId': styleSheetId,
    'text': text,
  });
  return result['sourceMapURL'] as String;
}