BasemapGalleryItem constructor

BasemapGalleryItem({
  1. required Basemap basemap,
  2. ArcGISImage? thumbnail,
  3. 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.

Implementation

BasemapGalleryItem({
  required this._basemap,
  ArcGISImage? thumbnail,
  String? tooltip,
}) : _thumbnailOverride = thumbnail,
     _tooltipOverride = tooltip {
  _recomputeDerivedFields();
  unawaited(_loadBasemapAndThumbnailIfNeeded());
}