getHighlightObjectForTest method

Future<Map<String, dynamic>> getHighlightObjectForTest(
  1. NodeId nodeId, {
  2. bool? includeDistance,
  3. bool? includeStyle,
  4. ColorFormat? colorFormat,
  5. bool? showAccessibilityInfo,
})

For testing. nodeId Id of the node to get highlight object for. includeDistance Whether to include distance info. includeStyle Whether to include style info. colorFormat The color format to get config with (default: hex). showAccessibilityInfo Whether to show accessibility info (default: true). Returns: Highlight data for the node.

Implementation

Future<Map<String, dynamic>> getHighlightObjectForTest(dom.NodeId nodeId,
    {bool? includeDistance,
    bool? includeStyle,
    ColorFormat? colorFormat,
    bool? showAccessibilityInfo}) async {
  var result = await _client.send('Overlay.getHighlightObjectForTest', {
    'nodeId': nodeId,
    if (includeDistance != null) 'includeDistance': includeDistance,
    if (includeStyle != null) 'includeStyle': includeStyle,
    if (colorFormat != null) 'colorFormat': colorFormat,
    if (showAccessibilityInfo != null)
      'showAccessibilityInfo': showAccessibilityInfo,
  });
  return result['highlight'] as Map<String, dynamic>;
}