getDefaultContainer function

  1. @Injectable.new()
HtmlElement getDefaultContainer(
  1. @Inject.new(overlayContainerName) String name,
  2. @Inject.new(overlayContainerParent) HtmlElement parent,
  3. @Optional.new() @SkipSelf.new() @Inject.new(overlayContainerToken) dynamic container
)

Either finds, or creates an "acx-overlay-container" div at the end of body.

Implementation

@Injectable()
HtmlElement getDefaultContainer(
    @Inject(overlayContainerName) String name,
    @Inject(overlayContainerParent) HtmlElement parent,
    @Optional() @SkipSelf() @Inject(overlayContainerToken) container) {
  if (container != null) return container;
  return createAcxOverlayContainer(parent,
      id: overlayDefaultContainerId, name: name);
}