MapLayerInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
MapLayerInput({String? id, @Default.new('') String name, @JsonKey.new(unknownEnumValue: MapSource.custom) @Default.new(MapSource.custom) MapSource source, String? rasterServerLight, String? rasterServerDark, String? googleToken, @JsonKey.new(unknownEnumValue: GoogleMapLayer.roadmap) List<
GoogleMapLayer> ? googleLayers, String? mapboxToken, @JsonKey.new(unknownEnumValue: MapboxStyle.navigation) List<MapboxStyle> ? mapboxLayers, String? mapboxCustomUsername, String? mapboxCustomStyleId, String? hereToken, @JsonKey.new(unknownEnumValue: HereStyle.lite) List<HereStyle> ? hereLayers, @Default.new('https://cdn.layrz.com/resources/layrz/logo/normal.png') String attributionUrl, String? attributionUrlDark, @Default.new(100) double attributionWidth, @Default.new(30) double attributionHeight, @Default.new([]) List<String> appsIds}) -
MapLayerInput is the model for a map layer.
It is used to define the layers that are available in the app.
This model only can be getted from the RegisteredApp model.
factory
-
MapLayerInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
appsIds
↔ List<
String> -
appsIdsis the list ofApps that are associated with the layer.getter/setter pairinherited - attributionHeight ↔ double
-
attributionHeightis the height of the attribution of the layer.getter/setter pairinherited - attributionUrl ↔ String
-
attributionUrlis the URI for the attribution of the layer.getter/setter pairinherited - attributionUrlDark ↔ String?
-
attributionUrlDarkis the URI for the attribution of the layer in dark mode.getter/setter pairinherited - attributionWidth ↔ double
-
attributionWidthis the width of the attribution of the layer.getter/setter pairinherited -
copyWith
→ $MapLayerInputCopyWith<
MapLayerInput> -
Create a copy of MapLayerInput
with the given fields replaced by the non-null parameter values.
no setterinherited
-
googleLayers
↔ List<
GoogleMapLayer> ? -
googleLayersis the list of enabled layers for the Google Maps. Only used when thesourceis MapSource.google.getter/setter pairinherited - googleToken ↔ String?
-
googleTokenis the Google Maps token with Map Tiles API capabilities. Only used when thesourceis MapSource.google.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
hereLayers
↔ List<
HereStyle> ? -
hereLayersis the list of enabled layers for the HERE Maps. Only used when thesourceis MapSource.here.getter/setter pairinherited - hereToken ↔ String?
-
hereTokenis the HERE token with Map Tiles API capabilities. Only used when thesourceis MapSource.here.getter/setter pairinherited - id ↔ String?
-
idis the unique identifier for the layer.getter/setter pairinherited - mapboxCustomStyleId ↔ String?
-
mapboxCustomStyleIdis the Mapbox custom style id. Only used when thesourceis MapSource.mapbox and themapboxStyleis MapboxStyle.custom.getter/setter pairinherited - mapboxCustomUsername ↔ String?
-
mapboxCustomUsernameis the Mapbox custom username. Only used when thesourceis MapSource.mapbox and themapboxStyleis MapboxStyle.custom.getter/setter pairinherited -
mapboxLayers
↔ List<
MapboxStyle> ? -
mapboxStyleis the Mapbox style for the layer. Only used when thesourceis MapSource.mapbox.getter/setter pairinherited - mapboxToken ↔ String?
-
mapboxTokenis the Mapbox token with Static Tiles API capabilities. Only used when thesourceis MapSource.mapbox.getter/setter pairinherited - name ↔ String
-
nameis the name of the layer.getter/setter pairinherited - rasterServerDark ↔ String?
-
rasterServerDarkis the raster server for dark mode. Only used when thesourceis MapSource.custom.getter/setter pairinherited - rasterServerLight ↔ String?
-
rasterServerLightis the raster server for light mode and default. Only used when thesourceis MapSource.custom.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source ↔ MapSource
-
sourceis the source of the layer.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_MapLayerInput value)) → TResult -
Available on MapLayerInput, provided by the MapLayerInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_MapLayerInput value)?) → TResult? -
Available on MapLayerInput, provided by the MapLayerInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_MapLayerInput value)?, {required TResult orElse()}) → TResult -
Available on MapLayerInput, provided by the MapLayerInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String name, MapSource source, String? rasterServerLight, String? rasterServerDark, String? googleToken, List< GoogleMapLayer> ? googleLayers, String? mapboxToken, List<MapboxStyle> ? mapboxLayers, String? mapboxCustomUsername, String? mapboxCustomStyleId, String? hereToken, List<HereStyle> ? hereLayers, String attributionUrl, String? attributionUrlDark, double attributionWidth, double attributionHeight, List<String> appsIds)?, {required TResult orElse()}) → TResult -
Available on MapLayerInput, provided by the MapLayerInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this MapLayerInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, String name, MapSource source, String? rasterServerLight, String? rasterServerDark, String? googleToken, List< GoogleMapLayer> ? googleLayers, String? mapboxToken, List<MapboxStyle> ? mapboxLayers, String? mapboxCustomUsername, String? mapboxCustomStyleId, String? hereToken, List<HereStyle> ? hereLayers, String attributionUrl, String? attributionUrlDark, double attributionWidth, double attributionHeight, List<String> appsIds)) → TResult -
Available on MapLayerInput, provided by the MapLayerInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String name, MapSource source, String? rasterServerLight, String? rasterServerDark, String? googleToken, List< GoogleMapLayer> ? googleLayers, String? mapboxToken, List<MapboxStyle> ? mapboxLayers, String? mapboxCustomUsername, String? mapboxCustomStyleId, String? hereToken, List<HereStyle> ? hereLayers, String attributionUrl, String? attributionUrlDark, double attributionWidth, double attributionHeight, List<String> appsIds)?) → TResult? -
Available on MapLayerInput, provided by the MapLayerInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited