BasemapGalleryItem class final

A class representing an item within a basemap gallery.

Fallback rules:

  • Thumbnail: If BasemapGalleryItem.thumbnail is set and valid, it overrides the default. Otherwise, defaults to the basemap's associated PortalItem thumbnail, if it exists.
  • Tooltip: If BasemapGalleryItem.tooltip is set and valid, it overrides the default. Otherwise, defaults to the basemap's associated PortalItem description, if it exists.

Constructors

BasemapGalleryItem({required Basemap basemap, ArcGISImage? thumbnail, String? tooltip})
Creates a BasemapGalleryItem using the provided basemap. If thumbnail is not provided, defaults to the basemap's associated PortalItem thumbnail, if it exists. If tooltip is not provided, or is empty, defaults to the basemap's associated PortalItem description, if it exists.

Properties

basemap → Basemap
The basemap for this basemap gallery item.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this basemap from the basemap's associated PortalItem name, if it exists.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnail → ArcGISImage?
The thumbnail to display for this gallery item. The thumbnail can be set manually, otherwise defaults to the basemap's associated PortalItem thumbnail, if it exists.
no setter
tooltip String?
The tooltip for this basemap gallery item, as provided in the constructor.
no setter

Methods

dispose() → void
Disposes resources contained in this item.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setThumbnail({ArcGISImage? image}) → void
Sets the provided thumbnail image to this basemap gallery item.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited