close method

Future<void> close()

Tries to close page, running its beforeunload hooks, if any.

Implementation

Future<void> close() async {
  await _client.send('Page.close');
}