getComputedStyleForNode method

Future<List<CSSComputedStyleProperty>> getComputedStyleForNode(
  1. NodeId nodeId
)

Returns the computed style for a DOM node identified by nodeId. Returns: Computed style for the specified DOM node.

Implementation

Future<List<CSSComputedStyleProperty>> getComputedStyleForNode(
    dom.NodeId nodeId) async {
  var result = await _client.send('CSS.getComputedStyleForNode', {
    'nodeId': nodeId,
  });
  return (result['computedStyle'] as List)
      .map(
          (e) => CSSComputedStyleProperty.fromJson(e as Map<String, dynamic>))
      .toList();
}