portal property

  1. @Input('portalHost')
set portal (dynamic portal)

Implementation

@Input('portalHost')
set portal(dynamic portal) {
  if (hasAttached) {
    detach().then((_) {
      if (portal != null) {
        attach(portal);
      }
    });
  } else {
    // Null signifies just detach any existing portal, do not attach anything.
    if (portal != null) {
      attach(portal);
    }
  }
}