enable method

Future<void> enable({
  1. @Enum(['none', 'all']) String? includeWhitespace,
})

Enables DOM agent for the given page. includeWhitespace Whether to include whitespaces in the children array of returned Nodes.

Implementation

Future<void> enable({
  @Enum(['none', 'all']) String? includeWhitespace,
}) async {
  assert(
    includeWhitespace == null ||
        const ['none', 'all'].contains(includeWhitespace),
  );
  await _client.send('DOM.enable', {
    if (includeWhitespace != null) 'includeWhitespace': includeWhitespace,
  });
}