getHighlightObjectForTest method
Future<Map<String, dynamic> >
getHighlightObjectForTest(
- NodeId nodeId, {
- bool? includeDistance,
- bool? includeStyle,
- ColorFormat? colorFormat,
- 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>;
}