File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,25 +22,12 @@ part of '../../arcgis_maps_toolkit.dart';
2222/// - If `thumbnail` /`tooltip` overrides are provided and valid, they are used.
2323/// - Otherwise, fall back to the basemap's associated [Item] (if present).
2424final class BasemapGalleryItem {
25- /// Creates a [BasemapGalleryItem] with a [Basemap] .
26- ///
27- /// If the [Basemap] has an associated [Item] with a thumbnail and
28- /// description, they are used for [thumbnail] and [tooltip] .
29- BasemapGalleryItem ({required Basemap basemap})
30- : _basemap = basemap,
31- _thumbnailOverride = null ,
32- _tooltipOverride = null {
33- _recomputeDerivedFields ();
34- unawaited (_loadBasemapAndThumbnailIfNeeded ());
35- }
36-
37- /// Creates a [BasemapGalleryItem] with optional thumbnail and tooltip
38- /// overrides.
25+ /// Creates a [BasemapGalleryItem] .
3926 ///
4027 /// If [thumbnail] or [tooltip] are not provided (or are empty for [tooltip] ),
4128 /// values from the basemap's associated [Item] are used as fallbacks.
42- BasemapGalleryItem . withOverrides (
43- Basemap basemap, {
29+ BasemapGalleryItem ({
30+ required Basemap basemap,
4431 LoadableImage ? thumbnail,
4532 String ? tooltip,
4633 }) : _basemap = basemap,
You can’t perform that action at this time.
0 commit comments