setWebLifecycleState method
Tries to update the web lifecycle state of the page.
It will transition the page to the given state according to:
https://github.com/WICG/web-lifecycle/
state
Target lifecycle state
Implementation
Future<void> setWebLifecycleState(
@Enum(['frozen', 'active']) String state,
) async {
assert(const ['frozen', 'active'].contains(state));
await _client.send('Page.setWebLifecycleState', {'state': state});
}