onDocumentOpened property

Stream<FrameInfo> get onDocumentOpened

Fired when opening document to write to.

Implementation

Stream<FrameInfo> get onDocumentOpened => _client.onEvent
    .where((event) => event.name == 'Page.documentOpened')
    .map(
      (event) => FrameInfo.fromJson(
        event.parameters['frame'] as Map<String, dynamic>,
      ),
    );