attach method
Attaches portal
.
Returns a future that completes when portal is attached with the context of the instantiated view. For components, this is an instance of the component. For views, it is a Map of locals.
When possible, prefer using Portal.attach, as it returns a typed result
instead of dynamic
.
Implementation
@override
Future<dynamic /*ComponentRef<Object> | Map<String, dynamic>*/ > attach(
Portal<Object?> portal) =>
_delegateHost.attach(portal);