Theme class
Constructors
-
Theme({required String id, required String version, required List<
ThemeLayer> layers})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
the ID of the theme, which is used to identify the theme
final
-
layers
→ List<
ThemeLayer> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tileSources
→ Set<
String> -
Provides the sources of all layers of this theme.
no setter
- version → String
-
the version of the theme
final
Methods
-
atZoom(
double zoom) → Theme -
Provides a copy of this theme that only has layers that match
the given
zoom
. -
copyWith(
{Set< ThemeLayerType> ? types, String? id, double? atZoom}) → Theme -
Creates a copy of this theme with the specified properties.
If specified, the returned theme only includes layers of the given
types
. If specified, the returned theme has the givenid
. If specified, the returned theme has only layers matching the givenatZoom
. -
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