Target class

Constructors

Target(Session? session, TargetManager targetManager, TargetInfo info, Future<Session> _sessionFactory({required bool isAutoAttachEmulated}), {required BrowserContext browserContext})

Properties

browser Browser
no setter
browserContext BrowserContext
The browser context the target belongs to.
final
hashCode int
The hash code for this object.
no setterinherited
initialized Future<bool>
no setter
isDestroyed bool
no setter
isInitialized bool
no setter
isPage bool
no setter
onClose Future<void>
no setter
opener Target?
Get the target that opened this target. Top-level targets return null.
no setter
page Future<Page>
no setter
pageOrNull Future<Page?>
If the target is not of type "page" or "background_page", returns null.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session → Session?
final
targetID TargetID
final
targetInfo TargetInfo
no setter
targetManager → TargetManager
final
type String
Identifies what kind of target this is. Can be "page", "background_page", "service_worker", "shared_worker", "browser", "webview" or "other".
getter/setter pair
url String
no setter
worker Future<Worker?>
If the target is not of type "service_worker" or "shared_worker", returns null.
no setter

Methods

changeInfo(TargetInfo info) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDestroyed() → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited