collectClassNames method

Future<List<String>> collectClassNames(
  1. StyleSheetId styleSheetId
)

Returns all class names from specified stylesheet. Returns: Class name list.

Implementation

Future<List<String>> collectClassNames(StyleSheetId styleSheetId) async {
  var result = await _client.send('CSS.collectClassNames', {
    'styleSheetId': styleSheetId,
  });
  return (result['classNames'] as List).map((e) => e as String).toList();
}