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>
appsIds is the list of Apps that are associated with the layer.
getter/setter pairinherited
attributionHeight double
attributionHeight is the height of the attribution of the layer.
getter/setter pairinherited
attributionUrl String
attributionUrl is the URI for the attribution of the layer.
getter/setter pairinherited
attributionUrlDark String?
attributionUrlDark is the URI for the attribution of the layer in dark mode.
getter/setter pairinherited
attributionWidth double
attributionWidth is 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>?
googleLayers is the list of enabled layers for the Google Maps. Only used when the source is MapSource.google.
getter/setter pairinherited
googleToken String?
googleToken is the Google Maps token with Map Tiles API capabilities. Only used when the source is MapSource.google.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hereLayers List<HereStyle>?
hereLayers is the list of enabled layers for the HERE Maps. Only used when the source is MapSource.here.
getter/setter pairinherited
hereToken String?
hereToken is the HERE token with Map Tiles API capabilities. Only used when the source is MapSource.here.
getter/setter pairinherited
id String?
id is the unique identifier for the layer.
getter/setter pairinherited
mapboxCustomStyleId String?
mapboxCustomStyleId is the Mapbox custom style id. Only used when the source is MapSource.mapbox and the mapboxStyle is MapboxStyle.custom.
getter/setter pairinherited
mapboxCustomUsername String?
mapboxCustomUsername is the Mapbox custom username. Only used when the source is MapSource.mapbox and the mapboxStyle is MapboxStyle.custom.
getter/setter pairinherited
mapboxLayers List<MapboxStyle>?
mapboxStyle is the Mapbox style for the layer. Only used when the source is MapSource.mapbox.
getter/setter pairinherited
mapboxToken String?
mapboxToken is the Mapbox token with Static Tiles API capabilities. Only used when the source is MapSource.mapbox.
getter/setter pairinherited
name String
name is the name of the layer.
getter/setter pairinherited
rasterServerDark String?
rasterServerDark is the raster server for dark mode. Only used when the source is MapSource.custom.
getter/setter pairinherited
rasterServerLight String?
rasterServerLight is the raster server for light mode and default. Only used when the source is MapSource.custom.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source MapSource
source is 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_MapLayerInput value)?) → TResult?

Available on MapLayerInput, provided by the MapLayerInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_MapLayerInput value)?, {required TResult orElse()}) → TResult

Available on MapLayerInput, provided by the MapLayerInputPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

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