BasemapGalleryItem class final
A class representing an item within a basemap gallery.
Fallback rules:
- Thumbnail: If
BasemapGalleryItem.thumbnailis set and valid, it overrides the default. Otherwise, defaults to the basemap's associatedPortalItemthumbnail, if it exists. - Tooltip: If
BasemapGalleryItem.tooltipis set and valid, it overrides the default. Otherwise, defaults to the basemap's associatedPortalItemdescription, if it exists.
Constructors
- BasemapGalleryItem({required Basemap basemap, ArcGISImage? thumbnail, String? tooltip})
-
Creates a BasemapGalleryItem using the provided basemap.
If
thumbnailis not provided, defaults to the basemap's associatedPortalItemthumbnail, if it exists. Iftooltipis not provided, or is empty, defaults to the basemap's associatedPortalItemdescription, 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
PortalItemname, 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
PortalItemthumbnail, 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