forceShowPopover method

Future<List<NodeId>> forceShowPopover(
  1. NodeId nodeId,
  2. bool enable
)

When enabling, this API force-opens the popover identified by nodeId and keeps it open until disabled. nodeId Id of the popover HTMLElement enable If true, opens the popover and keeps it open. If false, closes the popover if it was previously force-opened. Returns: List of popovers that were closed in order to respect popover stacking order.

Implementation

Future<List<NodeId>> forceShowPopover(NodeId nodeId, bool enable) async {
  var result = await _client.send('DOM.forceShowPopover', {
    'nodeId': nodeId,
    'enable': enable,
  });
  return (result['nodeIds'] as List)
      .map((e) => NodeId.fromJson(e as int))
      .toList();
}