BasePortalHost class abstract
A partial implementation of PortalHost.
Implement attachComponentPortal and attachTemplatePortal.
- Implemented types
- Implementers
Constructors
Properties
- hasAttached → bool
-
True if the host has a portal attached within.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attach(
Portal< Object?> ? portal) → Future -
Attaches
portal
.override -
attachComponentPortal(
ComponentPortal< Object> portal) → Future<ComponentRef< Object> > -
attachTemplatePortal(
TemplatePortal portal) → Future< Map< String, dynamic> > -
detach(
) → Future< void> -
Detaches any active portal.
override
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setPortalDisposer(
DisposeFunction fn) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createLocalsMap(
ViewRef viewRef) → Map< String, dynamic>