BasemapGalleryController class final

The BasemapGalleryController contains the state data and properties for the associated BasemapGallery. The controller is used to define the list of BasemapGalleryItem to display within the BasemapGallery, manage the view style of the gallery, and listen to events when the current basemap changes. Once the BasemapGalleryController is configured, it is used to construct the BasemapGallery widget.

Constructors

BasemapGalleryController({GeoModel? geoModel})
Creates a BasemapGalleryController with default basemaps from ArcGIS Online's developer basemaps. Provide a GeoModel to automatically apply the BasemapGalleryController.currentBasemap to the respective map or scene.
BasemapGalleryController.withItems({required List<BasemapGalleryItem> items, GeoModel? geoModel})
Creates a BasemapGalleryController using the provided custom list of BasemapGalleryItem. Provide a GeoModel to automatically apply the BasemapGalleryController.currentBasemap to the respective map or scene.
BasemapGalleryController.withPortal(Portal portal, {GeoModel? geoModel})
Creates a BasemapGalleryController using basemaps from the provided Portal. Provide a GeoModel to automatically apply the BasemapGalleryController.currentBasemap to the respective map or scene.

Properties

currentBasemap → Basemap?
The basemap that is currently applied on the associated GeoModel.
no setter
The list of basemap gallery items associated with this BasemapGalleryController.
no setter
geoModel ↔ GeoModel?
The associated GeoModel. This is either an ArcGISMap or ArcGISScene. Associate a GeoModel with the BasemapGalleryController to automatically apply the selected basemap to the map or scene.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onBasemapChanged ValueChanged<Basemap>?
Called after a basemap selection is applied.
getter/setter pair
portal → Portal?
The portal used to populate the gallery, if provided in the constructor.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewStyle BasemapGalleryViewStyle
The current view style for the basemap gallery.
getter/setter pair

Methods

dispose() → void
Disposes resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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