Portal.arcGISOnline constructor

Portal.arcGISOnline(
  1. {PortalConnection connection = PortalConnection.anonymous}
)

Creates a portal instance pointing to https://www.arcgis.com.

The portal should be loaded using Portal.load() before using it. ArcGIS Online permits anonymous access. If you want to connect to the portal anonymously, you should set connection to PortalConnection.anonymous. If you want to connect to the portal using an identity, you should set connection to PortalConnection.authenticated and an authentication challenge will be issued to first request a credential. Parameters:

  • connection - The connection type used while loading the portal.

Implementation

factory Portal.arcGISOnline(
    {PortalConnection connection = PortalConnection.anonymous}) {
  return Portal(Uri.parse('https://www.arcgis.com'), connection: connection);
}