onScreenshotRequested property
Fired when user asks to capture screenshot of some area on the page.
Implementation
Stream<page.Viewport> get onScreenshotRequested => _client.onEvent
.where((event) => event.name == 'Overlay.screenshotRequested')
.map(
(event) => page.Viewport.fromJson(
event.parameters['viewport'] as Map<String, dynamic>,
),
);