isAttached property

bool get isAttached

Returns true if this portal is in the process of being attached but the host has not loaded it yet or if the host has already loaded it.

Can be used to determine whether detach is required before attach. TODO(google): If this is not used in public API, make it private.

Implementation

bool get isAttached => _attachedHost != null;