diff --git a/CHANGELOG.md b/CHANGELOG.md index cf08ad7..d1221c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.7.4 + +- Added `showAssetsLabels`, `showGeofencesLabels`, `showPoisLabels`, and `showAssetsTrails` boolean fields to `Locator` and `LocatorInput`. +- `enableSidebar` and `showAssetsTrails` default to `true` in `LocatorInput`. + ## 3.7.3 - Refactor `CaclInput`. diff --git a/lib/src/locator/locator.freezed.dart b/lib/src/locator/locator.freezed.dart index 09638fe..e51d3ff 100644 --- a/lib/src/locator/locator.freezed.dart +++ b/lib/src/locator/locator.freezed.dart @@ -1193,7 +1193,11 @@ mixin _$Locator { MapLayer? get mapLayer;/// [pois] is the list of [Poi]s that are associated with the locator. List? get pois;/// [poisIds] is the list of [Poi]s that are associated with the locator. List? get poisIds;/// [enableSidebar] indicates if the sidebar is enabled for this locator - bool? get enableSidebar;/// [boundary] is the geographic bounding box of the locator + bool? get enableSidebar;/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator + bool? get showAssetsLabels;/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator + bool? get showGeofencesLabels;/// [showPoisLabels] indicates if the POI label overlays are visible for this locator + bool? get showPoisLabels;/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator + bool? get showAssetsTrails;/// [boundary] is the geographic bounding box of the locator LocatorBoundary? get boundary;/// [description] is the description of the locator String? get description; /// Create a copy of Locator @@ -1208,16 +1212,16 @@ $LocatorCopyWith get copyWith => _$LocatorCopyWithImpl(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Locator&&(identical(other.id, id) || other.id == id)&&(identical(other.token, token) || other.token == token)&&(identical(other.mqttConfig, mqttConfig) || other.mqttConfig == mqttConfig)&&const DeepCollectionEquality().equals(other.assets, assets)&&const DeepCollectionEquality().equals(other.assetsIds, assetsIds)&&const DeepCollectionEquality().equals(other.geofences, geofences)&&const DeepCollectionEquality().equals(other.geofencesIds, geofencesIds)&&const DeepCollectionEquality().equals(other.triggers, triggers)&&const DeepCollectionEquality().equals(other.triggersIds, triggersIds)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)&&(identical(other.expiredBy, expiredBy) || other.expiredBy == expiredBy)&&(identical(other.expiredById, expiredById) || other.expiredById == expiredById)&&(identical(other.isExpired, isExpired) || other.isExpired == isExpired)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.createdById, createdById) || other.createdById == createdById)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.updatedBy, updatedBy) || other.updatedBy == updatedBy)&&(identical(other.updatedById, updatedById) || other.updatedById == updatedById)&&(identical(other.customization, customization) || other.customization == customization)&&(identical(other.customizationId, customizationId) || other.customizationId == customizationId)&&(identical(other.mapLayerId, mapLayerId) || other.mapLayerId == mapLayerId)&&(identical(other.mapLayer, mapLayer) || other.mapLayer == mapLayer)&&const DeepCollectionEquality().equals(other.pois, pois)&&const DeepCollectionEquality().equals(other.poisIds, poisIds)&&(identical(other.enableSidebar, enableSidebar) || other.enableSidebar == enableSidebar)&&(identical(other.boundary, boundary) || other.boundary == boundary)&&(identical(other.description, description) || other.description == description)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Locator&&(identical(other.id, id) || other.id == id)&&(identical(other.token, token) || other.token == token)&&(identical(other.mqttConfig, mqttConfig) || other.mqttConfig == mqttConfig)&&const DeepCollectionEquality().equals(other.assets, assets)&&const DeepCollectionEquality().equals(other.assetsIds, assetsIds)&&const DeepCollectionEquality().equals(other.geofences, geofences)&&const DeepCollectionEquality().equals(other.geofencesIds, geofencesIds)&&const DeepCollectionEquality().equals(other.triggers, triggers)&&const DeepCollectionEquality().equals(other.triggersIds, triggersIds)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)&&(identical(other.expiredBy, expiredBy) || other.expiredBy == expiredBy)&&(identical(other.expiredById, expiredById) || other.expiredById == expiredById)&&(identical(other.isExpired, isExpired) || other.isExpired == isExpired)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.createdById, createdById) || other.createdById == createdById)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.updatedBy, updatedBy) || other.updatedBy == updatedBy)&&(identical(other.updatedById, updatedById) || other.updatedById == updatedById)&&(identical(other.customization, customization) || other.customization == customization)&&(identical(other.customizationId, customizationId) || other.customizationId == customizationId)&&(identical(other.mapLayerId, mapLayerId) || other.mapLayerId == mapLayerId)&&(identical(other.mapLayer, mapLayer) || other.mapLayer == mapLayer)&&const DeepCollectionEquality().equals(other.pois, pois)&&const DeepCollectionEquality().equals(other.poisIds, poisIds)&&(identical(other.enableSidebar, enableSidebar) || other.enableSidebar == enableSidebar)&&(identical(other.showAssetsLabels, showAssetsLabels) || other.showAssetsLabels == showAssetsLabels)&&(identical(other.showGeofencesLabels, showGeofencesLabels) || other.showGeofencesLabels == showGeofencesLabels)&&(identical(other.showPoisLabels, showPoisLabels) || other.showPoisLabels == showPoisLabels)&&(identical(other.showAssetsTrails, showAssetsTrails) || other.showAssetsTrails == showAssetsTrails)&&(identical(other.boundary, boundary) || other.boundary == boundary)&&(identical(other.description, description) || other.description == description)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,token,mqttConfig,const DeepCollectionEquality().hash(assets),const DeepCollectionEquality().hash(assetsIds),const DeepCollectionEquality().hash(geofences),const DeepCollectionEquality().hash(geofencesIds),const DeepCollectionEquality().hash(triggers),const DeepCollectionEquality().hash(triggersIds),expiresAt,expiredBy,expiredById,isExpired,createdAt,createdBy,createdById,updatedAt,updatedBy,updatedById,customization,customizationId,mapLayerId,mapLayer,const DeepCollectionEquality().hash(pois),const DeepCollectionEquality().hash(poisIds),enableSidebar,boundary,description]); +int get hashCode => Object.hashAll([runtimeType,id,token,mqttConfig,const DeepCollectionEquality().hash(assets),const DeepCollectionEquality().hash(assetsIds),const DeepCollectionEquality().hash(geofences),const DeepCollectionEquality().hash(geofencesIds),const DeepCollectionEquality().hash(triggers),const DeepCollectionEquality().hash(triggersIds),expiresAt,expiredBy,expiredById,isExpired,createdAt,createdBy,createdById,updatedAt,updatedBy,updatedById,customization,customizationId,mapLayerId,mapLayer,const DeepCollectionEquality().hash(pois),const DeepCollectionEquality().hash(poisIds),enableSidebar,showAssetsLabels,showGeofencesLabels,showPoisLabels,showAssetsTrails,boundary,description]); @override String toString() { - return 'Locator(id: $id, token: $token, mqttConfig: $mqttConfig, assets: $assets, assetsIds: $assetsIds, geofences: $geofences, geofencesIds: $geofencesIds, triggers: $triggers, triggersIds: $triggersIds, expiresAt: $expiresAt, expiredBy: $expiredBy, expiredById: $expiredById, isExpired: $isExpired, createdAt: $createdAt, createdBy: $createdBy, createdById: $createdById, updatedAt: $updatedAt, updatedBy: $updatedBy, updatedById: $updatedById, customization: $customization, customizationId: $customizationId, mapLayerId: $mapLayerId, mapLayer: $mapLayer, pois: $pois, poisIds: $poisIds, enableSidebar: $enableSidebar, boundary: $boundary, description: $description)'; + return 'Locator(id: $id, token: $token, mqttConfig: $mqttConfig, assets: $assets, assetsIds: $assetsIds, geofences: $geofences, geofencesIds: $geofencesIds, triggers: $triggers, triggersIds: $triggersIds, expiresAt: $expiresAt, expiredBy: $expiredBy, expiredById: $expiredById, isExpired: $isExpired, createdAt: $createdAt, createdBy: $createdBy, createdById: $createdById, updatedAt: $updatedAt, updatedBy: $updatedBy, updatedById: $updatedById, customization: $customization, customizationId: $customizationId, mapLayerId: $mapLayerId, mapLayer: $mapLayer, pois: $pois, poisIds: $poisIds, enableSidebar: $enableSidebar, showAssetsLabels: $showAssetsLabels, showGeofencesLabels: $showGeofencesLabels, showPoisLabels: $showPoisLabels, showAssetsTrails: $showAssetsTrails, boundary: $boundary, description: $description)'; } @@ -1228,7 +1232,7 @@ abstract mixin class $LocatorCopyWith<$Res> { factory $LocatorCopyWith(Locator value, $Res Function(Locator) _then) = _$LocatorCopyWithImpl; @useResult $Res call({ - String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired,@TimestampConverter() DateTime createdAt, User? createdBy, String? createdById,@TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, LocatorBoundary? boundary, String? description + String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired,@TimestampConverter() DateTime createdAt, User? createdBy, String? createdById,@TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, bool? showAssetsLabels, bool? showGeofencesLabels, bool? showPoisLabels, bool? showAssetsTrails, LocatorBoundary? boundary, String? description }); @@ -1245,7 +1249,7 @@ class _$LocatorCopyWithImpl<$Res> /// Create a copy of Locator /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? token = null,Object? mqttConfig = freezed,Object? assets = freezed,Object? assetsIds = freezed,Object? geofences = freezed,Object? geofencesIds = freezed,Object? triggers = freezed,Object? triggersIds = freezed,Object? expiresAt = freezed,Object? expiredBy = freezed,Object? expiredById = freezed,Object? isExpired = freezed,Object? createdAt = null,Object? createdBy = freezed,Object? createdById = freezed,Object? updatedAt = null,Object? updatedBy = freezed,Object? updatedById = freezed,Object? customization = freezed,Object? customizationId = freezed,Object? mapLayerId = freezed,Object? mapLayer = freezed,Object? pois = freezed,Object? poisIds = freezed,Object? enableSidebar = freezed,Object? boundary = freezed,Object? description = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? token = null,Object? mqttConfig = freezed,Object? assets = freezed,Object? assetsIds = freezed,Object? geofences = freezed,Object? geofencesIds = freezed,Object? triggers = freezed,Object? triggersIds = freezed,Object? expiresAt = freezed,Object? expiredBy = freezed,Object? expiredById = freezed,Object? isExpired = freezed,Object? createdAt = null,Object? createdBy = freezed,Object? createdById = freezed,Object? updatedAt = null,Object? updatedBy = freezed,Object? updatedById = freezed,Object? customization = freezed,Object? customizationId = freezed,Object? mapLayerId = freezed,Object? mapLayer = freezed,Object? pois = freezed,Object? poisIds = freezed,Object? enableSidebar = freezed,Object? showAssetsLabels = freezed,Object? showGeofencesLabels = freezed,Object? showPoisLabels = freezed,Object? showAssetsTrails = freezed,Object? boundary = freezed,Object? description = freezed,}) { return _then(_self.copyWith( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,token: null == token ? _self.token : token // ignore: cast_nullable_to_non_nullable @@ -1273,6 +1277,10 @@ as String?,mapLayer: freezed == mapLayer ? _self.mapLayer : mapLayer // ignore: as MapLayer?,pois: freezed == pois ? _self.pois : pois // ignore: cast_nullable_to_non_nullable as List?,poisIds: freezed == poisIds ? _self.poisIds : poisIds // ignore: cast_nullable_to_non_nullable as List?,enableSidebar: freezed == enableSidebar ? _self.enableSidebar : enableSidebar // ignore: cast_nullable_to_non_nullable +as bool?,showAssetsLabels: freezed == showAssetsLabels ? _self.showAssetsLabels : showAssetsLabels // ignore: cast_nullable_to_non_nullable +as bool?,showGeofencesLabels: freezed == showGeofencesLabels ? _self.showGeofencesLabels : showGeofencesLabels // ignore: cast_nullable_to_non_nullable +as bool?,showPoisLabels: freezed == showPoisLabels ? _self.showPoisLabels : showPoisLabels // ignore: cast_nullable_to_non_nullable +as bool?,showAssetsTrails: freezed == showAssetsTrails ? _self.showAssetsTrails : showAssetsTrails // ignore: cast_nullable_to_non_nullable as bool?,boundary: freezed == boundary ? _self.boundary : boundary // ignore: cast_nullable_to_non_nullable as LocatorBoundary?,description: freezed == description ? _self.description : description // ignore: cast_nullable_to_non_nullable as String?, @@ -1444,10 +1452,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired, @TimestampConverter() DateTime createdAt, User? createdBy, String? createdById, @TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, LocatorBoundary? boundary, String? description)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired, @TimestampConverter() DateTime createdAt, User? createdBy, String? createdById, @TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, bool? showAssetsLabels, bool? showGeofencesLabels, bool? showPoisLabels, bool? showAssetsTrails, LocatorBoundary? boundary, String? description)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _Locator() when $default != null: -return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsIds,_that.geofences,_that.geofencesIds,_that.triggers,_that.triggersIds,_that.expiresAt,_that.expiredBy,_that.expiredById,_that.isExpired,_that.createdAt,_that.createdBy,_that.createdById,_that.updatedAt,_that.updatedBy,_that.updatedById,_that.customization,_that.customizationId,_that.mapLayerId,_that.mapLayer,_that.pois,_that.poisIds,_that.enableSidebar,_that.boundary,_that.description);case _: +return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsIds,_that.geofences,_that.geofencesIds,_that.triggers,_that.triggersIds,_that.expiresAt,_that.expiredBy,_that.expiredById,_that.isExpired,_that.createdAt,_that.createdBy,_that.createdById,_that.updatedAt,_that.updatedBy,_that.updatedById,_that.customization,_that.customizationId,_that.mapLayerId,_that.mapLayer,_that.pois,_that.poisIds,_that.enableSidebar,_that.showAssetsLabels,_that.showGeofencesLabels,_that.showPoisLabels,_that.showAssetsTrails,_that.boundary,_that.description);case _: return orElse(); } @@ -1465,10 +1473,10 @@ return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsI /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired, @TimestampConverter() DateTime createdAt, User? createdBy, String? createdById, @TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, LocatorBoundary? boundary, String? description) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired, @TimestampConverter() DateTime createdAt, User? createdBy, String? createdById, @TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, bool? showAssetsLabels, bool? showGeofencesLabels, bool? showPoisLabels, bool? showAssetsTrails, LocatorBoundary? boundary, String? description) $default,) {final _that = this; switch (_that) { case _Locator(): -return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsIds,_that.geofences,_that.geofencesIds,_that.triggers,_that.triggersIds,_that.expiresAt,_that.expiredBy,_that.expiredById,_that.isExpired,_that.createdAt,_that.createdBy,_that.createdById,_that.updatedAt,_that.updatedBy,_that.updatedById,_that.customization,_that.customizationId,_that.mapLayerId,_that.mapLayer,_that.pois,_that.poisIds,_that.enableSidebar,_that.boundary,_that.description);case _: +return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsIds,_that.geofences,_that.geofencesIds,_that.triggers,_that.triggersIds,_that.expiresAt,_that.expiredBy,_that.expiredById,_that.isExpired,_that.createdAt,_that.createdBy,_that.createdById,_that.updatedAt,_that.updatedBy,_that.updatedById,_that.customization,_that.customizationId,_that.mapLayerId,_that.mapLayer,_that.pois,_that.poisIds,_that.enableSidebar,_that.showAssetsLabels,_that.showGeofencesLabels,_that.showPoisLabels,_that.showAssetsTrails,_that.boundary,_that.description);case _: throw StateError('Unexpected subclass'); } @@ -1485,10 +1493,10 @@ return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsI /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired, @TimestampConverter() DateTime createdAt, User? createdBy, String? createdById, @TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, LocatorBoundary? boundary, String? description)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired, @TimestampConverter() DateTime createdAt, User? createdBy, String? createdById, @TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, bool? showAssetsLabels, bool? showGeofencesLabels, bool? showPoisLabels, bool? showAssetsTrails, LocatorBoundary? boundary, String? description)? $default,) {final _that = this; switch (_that) { case _Locator() when $default != null: -return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsIds,_that.geofences,_that.geofencesIds,_that.triggers,_that.triggersIds,_that.expiresAt,_that.expiredBy,_that.expiredById,_that.isExpired,_that.createdAt,_that.createdBy,_that.createdById,_that.updatedAt,_that.updatedBy,_that.updatedById,_that.customization,_that.customizationId,_that.mapLayerId,_that.mapLayer,_that.pois,_that.poisIds,_that.enableSidebar,_that.boundary,_that.description);case _: +return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsIds,_that.geofences,_that.geofencesIds,_that.triggers,_that.triggersIds,_that.expiresAt,_that.expiredBy,_that.expiredById,_that.isExpired,_that.createdAt,_that.createdBy,_that.createdById,_that.updatedAt,_that.updatedBy,_that.updatedById,_that.customization,_that.customizationId,_that.mapLayerId,_that.mapLayer,_that.pois,_that.poisIds,_that.enableSidebar,_that.showAssetsLabels,_that.showGeofencesLabels,_that.showPoisLabels,_that.showAssetsTrails,_that.boundary,_that.description);case _: return null; } @@ -1500,7 +1508,7 @@ return $default(_that.id,_that.token,_that.mqttConfig,_that.assets,_that.assetsI @JsonSerializable() class _Locator extends Locator { - const _Locator({required this.id, required this.token, this.mqttConfig, final List? assets, final List? assetsIds, final List? geofences, final List? geofencesIds, final List? triggers, final List? triggersIds, @TimestampOrNullConverter() this.expiresAt, this.expiredBy, this.expiredById, this.isExpired, @TimestampConverter() required this.createdAt, this.createdBy, this.createdById, @TimestampConverter() required this.updatedAt, this.updatedBy, this.updatedById, this.customization, this.customizationId, this.mapLayerId, this.mapLayer, final List? pois, final List? poisIds, this.enableSidebar, this.boundary, this.description}): _assets = assets,_assetsIds = assetsIds,_geofences = geofences,_geofencesIds = geofencesIds,_triggers = triggers,_triggersIds = triggersIds,_pois = pois,_poisIds = poisIds,super._(); + const _Locator({required this.id, required this.token, this.mqttConfig, final List? assets, final List? assetsIds, final List? geofences, final List? geofencesIds, final List? triggers, final List? triggersIds, @TimestampOrNullConverter() this.expiresAt, this.expiredBy, this.expiredById, this.isExpired, @TimestampConverter() required this.createdAt, this.createdBy, this.createdById, @TimestampConverter() required this.updatedAt, this.updatedBy, this.updatedById, this.customization, this.customizationId, this.mapLayerId, this.mapLayer, final List? pois, final List? poisIds, this.enableSidebar, this.showAssetsLabels, this.showGeofencesLabels, this.showPoisLabels, this.showAssetsTrails, this.boundary, this.description}): _assets = assets,_assetsIds = assetsIds,_geofences = geofences,_geofencesIds = geofencesIds,_triggers = triggers,_triggersIds = triggersIds,_pois = pois,_poisIds = poisIds,super._(); factory _Locator.fromJson(Map json) => _$LocatorFromJson(json); /// [id] is the UUIDv4 identifier of the locator @@ -1627,6 +1635,14 @@ class _Locator extends Locator { /// [enableSidebar] indicates if the sidebar is enabled for this locator @override final bool? enableSidebar; +/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator +@override final bool? showAssetsLabels; +/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator +@override final bool? showGeofencesLabels; +/// [showPoisLabels] indicates if the POI label overlays are visible for this locator +@override final bool? showPoisLabels; +/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator +@override final bool? showAssetsTrails; /// [boundary] is the geographic bounding box of the locator @override final LocatorBoundary? boundary; /// [description] is the description of the locator @@ -1645,16 +1661,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Locator&&(identical(other.id, id) || other.id == id)&&(identical(other.token, token) || other.token == token)&&(identical(other.mqttConfig, mqttConfig) || other.mqttConfig == mqttConfig)&&const DeepCollectionEquality().equals(other._assets, _assets)&&const DeepCollectionEquality().equals(other._assetsIds, _assetsIds)&&const DeepCollectionEquality().equals(other._geofences, _geofences)&&const DeepCollectionEquality().equals(other._geofencesIds, _geofencesIds)&&const DeepCollectionEquality().equals(other._triggers, _triggers)&&const DeepCollectionEquality().equals(other._triggersIds, _triggersIds)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)&&(identical(other.expiredBy, expiredBy) || other.expiredBy == expiredBy)&&(identical(other.expiredById, expiredById) || other.expiredById == expiredById)&&(identical(other.isExpired, isExpired) || other.isExpired == isExpired)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.createdById, createdById) || other.createdById == createdById)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.updatedBy, updatedBy) || other.updatedBy == updatedBy)&&(identical(other.updatedById, updatedById) || other.updatedById == updatedById)&&(identical(other.customization, customization) || other.customization == customization)&&(identical(other.customizationId, customizationId) || other.customizationId == customizationId)&&(identical(other.mapLayerId, mapLayerId) || other.mapLayerId == mapLayerId)&&(identical(other.mapLayer, mapLayer) || other.mapLayer == mapLayer)&&const DeepCollectionEquality().equals(other._pois, _pois)&&const DeepCollectionEquality().equals(other._poisIds, _poisIds)&&(identical(other.enableSidebar, enableSidebar) || other.enableSidebar == enableSidebar)&&(identical(other.boundary, boundary) || other.boundary == boundary)&&(identical(other.description, description) || other.description == description)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Locator&&(identical(other.id, id) || other.id == id)&&(identical(other.token, token) || other.token == token)&&(identical(other.mqttConfig, mqttConfig) || other.mqttConfig == mqttConfig)&&const DeepCollectionEquality().equals(other._assets, _assets)&&const DeepCollectionEquality().equals(other._assetsIds, _assetsIds)&&const DeepCollectionEquality().equals(other._geofences, _geofences)&&const DeepCollectionEquality().equals(other._geofencesIds, _geofencesIds)&&const DeepCollectionEquality().equals(other._triggers, _triggers)&&const DeepCollectionEquality().equals(other._triggersIds, _triggersIds)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)&&(identical(other.expiredBy, expiredBy) || other.expiredBy == expiredBy)&&(identical(other.expiredById, expiredById) || other.expiredById == expiredById)&&(identical(other.isExpired, isExpired) || other.isExpired == isExpired)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.createdById, createdById) || other.createdById == createdById)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.updatedBy, updatedBy) || other.updatedBy == updatedBy)&&(identical(other.updatedById, updatedById) || other.updatedById == updatedById)&&(identical(other.customization, customization) || other.customization == customization)&&(identical(other.customizationId, customizationId) || other.customizationId == customizationId)&&(identical(other.mapLayerId, mapLayerId) || other.mapLayerId == mapLayerId)&&(identical(other.mapLayer, mapLayer) || other.mapLayer == mapLayer)&&const DeepCollectionEquality().equals(other._pois, _pois)&&const DeepCollectionEquality().equals(other._poisIds, _poisIds)&&(identical(other.enableSidebar, enableSidebar) || other.enableSidebar == enableSidebar)&&(identical(other.showAssetsLabels, showAssetsLabels) || other.showAssetsLabels == showAssetsLabels)&&(identical(other.showGeofencesLabels, showGeofencesLabels) || other.showGeofencesLabels == showGeofencesLabels)&&(identical(other.showPoisLabels, showPoisLabels) || other.showPoisLabels == showPoisLabels)&&(identical(other.showAssetsTrails, showAssetsTrails) || other.showAssetsTrails == showAssetsTrails)&&(identical(other.boundary, boundary) || other.boundary == boundary)&&(identical(other.description, description) || other.description == description)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,token,mqttConfig,const DeepCollectionEquality().hash(_assets),const DeepCollectionEquality().hash(_assetsIds),const DeepCollectionEquality().hash(_geofences),const DeepCollectionEquality().hash(_geofencesIds),const DeepCollectionEquality().hash(_triggers),const DeepCollectionEquality().hash(_triggersIds),expiresAt,expiredBy,expiredById,isExpired,createdAt,createdBy,createdById,updatedAt,updatedBy,updatedById,customization,customizationId,mapLayerId,mapLayer,const DeepCollectionEquality().hash(_pois),const DeepCollectionEquality().hash(_poisIds),enableSidebar,boundary,description]); +int get hashCode => Object.hashAll([runtimeType,id,token,mqttConfig,const DeepCollectionEquality().hash(_assets),const DeepCollectionEquality().hash(_assetsIds),const DeepCollectionEquality().hash(_geofences),const DeepCollectionEquality().hash(_geofencesIds),const DeepCollectionEquality().hash(_triggers),const DeepCollectionEquality().hash(_triggersIds),expiresAt,expiredBy,expiredById,isExpired,createdAt,createdBy,createdById,updatedAt,updatedBy,updatedById,customization,customizationId,mapLayerId,mapLayer,const DeepCollectionEquality().hash(_pois),const DeepCollectionEquality().hash(_poisIds),enableSidebar,showAssetsLabels,showGeofencesLabels,showPoisLabels,showAssetsTrails,boundary,description]); @override String toString() { - return 'Locator(id: $id, token: $token, mqttConfig: $mqttConfig, assets: $assets, assetsIds: $assetsIds, geofences: $geofences, geofencesIds: $geofencesIds, triggers: $triggers, triggersIds: $triggersIds, expiresAt: $expiresAt, expiredBy: $expiredBy, expiredById: $expiredById, isExpired: $isExpired, createdAt: $createdAt, createdBy: $createdBy, createdById: $createdById, updatedAt: $updatedAt, updatedBy: $updatedBy, updatedById: $updatedById, customization: $customization, customizationId: $customizationId, mapLayerId: $mapLayerId, mapLayer: $mapLayer, pois: $pois, poisIds: $poisIds, enableSidebar: $enableSidebar, boundary: $boundary, description: $description)'; + return 'Locator(id: $id, token: $token, mqttConfig: $mqttConfig, assets: $assets, assetsIds: $assetsIds, geofences: $geofences, geofencesIds: $geofencesIds, triggers: $triggers, triggersIds: $triggersIds, expiresAt: $expiresAt, expiredBy: $expiredBy, expiredById: $expiredById, isExpired: $isExpired, createdAt: $createdAt, createdBy: $createdBy, createdById: $createdById, updatedAt: $updatedAt, updatedBy: $updatedBy, updatedById: $updatedById, customization: $customization, customizationId: $customizationId, mapLayerId: $mapLayerId, mapLayer: $mapLayer, pois: $pois, poisIds: $poisIds, enableSidebar: $enableSidebar, showAssetsLabels: $showAssetsLabels, showGeofencesLabels: $showGeofencesLabels, showPoisLabels: $showPoisLabels, showAssetsTrails: $showAssetsTrails, boundary: $boundary, description: $description)'; } @@ -1665,7 +1681,7 @@ abstract mixin class _$LocatorCopyWith<$Res> implements $LocatorCopyWith<$Res> { factory _$LocatorCopyWith(_Locator value, $Res Function(_Locator) _then) = __$LocatorCopyWithImpl; @override @useResult $Res call({ - String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired,@TimestampConverter() DateTime createdAt, User? createdBy, String? createdById,@TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, LocatorBoundary? boundary, String? description + String id, String token, LocatorMqttConfig? mqttConfig, List? assets, List? assetsIds, List? geofences, List? geofencesIds, List? triggers, List? triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, User? expiredBy, String? expiredById, bool? isExpired,@TimestampConverter() DateTime createdAt, User? createdBy, String? createdById,@TimestampConverter() DateTime updatedAt, User? updatedBy, String? updatedById, RegisteredApp? customization, String? customizationId, String? mapLayerId, MapLayer? mapLayer, List? pois, List? poisIds, bool? enableSidebar, bool? showAssetsLabels, bool? showGeofencesLabels, bool? showPoisLabels, bool? showAssetsTrails, LocatorBoundary? boundary, String? description }); @@ -1682,7 +1698,7 @@ class __$LocatorCopyWithImpl<$Res> /// Create a copy of Locator /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? token = null,Object? mqttConfig = freezed,Object? assets = freezed,Object? assetsIds = freezed,Object? geofences = freezed,Object? geofencesIds = freezed,Object? triggers = freezed,Object? triggersIds = freezed,Object? expiresAt = freezed,Object? expiredBy = freezed,Object? expiredById = freezed,Object? isExpired = freezed,Object? createdAt = null,Object? createdBy = freezed,Object? createdById = freezed,Object? updatedAt = null,Object? updatedBy = freezed,Object? updatedById = freezed,Object? customization = freezed,Object? customizationId = freezed,Object? mapLayerId = freezed,Object? mapLayer = freezed,Object? pois = freezed,Object? poisIds = freezed,Object? enableSidebar = freezed,Object? boundary = freezed,Object? description = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? token = null,Object? mqttConfig = freezed,Object? assets = freezed,Object? assetsIds = freezed,Object? geofences = freezed,Object? geofencesIds = freezed,Object? triggers = freezed,Object? triggersIds = freezed,Object? expiresAt = freezed,Object? expiredBy = freezed,Object? expiredById = freezed,Object? isExpired = freezed,Object? createdAt = null,Object? createdBy = freezed,Object? createdById = freezed,Object? updatedAt = null,Object? updatedBy = freezed,Object? updatedById = freezed,Object? customization = freezed,Object? customizationId = freezed,Object? mapLayerId = freezed,Object? mapLayer = freezed,Object? pois = freezed,Object? poisIds = freezed,Object? enableSidebar = freezed,Object? showAssetsLabels = freezed,Object? showGeofencesLabels = freezed,Object? showPoisLabels = freezed,Object? showAssetsTrails = freezed,Object? boundary = freezed,Object? description = freezed,}) { return _then(_Locator( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,token: null == token ? _self.token : token // ignore: cast_nullable_to_non_nullable @@ -1710,6 +1726,10 @@ as String?,mapLayer: freezed == mapLayer ? _self.mapLayer : mapLayer // ignore: as MapLayer?,pois: freezed == pois ? _self._pois : pois // ignore: cast_nullable_to_non_nullable as List?,poisIds: freezed == poisIds ? _self._poisIds : poisIds // ignore: cast_nullable_to_non_nullable as List?,enableSidebar: freezed == enableSidebar ? _self.enableSidebar : enableSidebar // ignore: cast_nullable_to_non_nullable +as bool?,showAssetsLabels: freezed == showAssetsLabels ? _self.showAssetsLabels : showAssetsLabels // ignore: cast_nullable_to_non_nullable +as bool?,showGeofencesLabels: freezed == showGeofencesLabels ? _self.showGeofencesLabels : showGeofencesLabels // ignore: cast_nullable_to_non_nullable +as bool?,showPoisLabels: freezed == showPoisLabels ? _self.showPoisLabels : showPoisLabels // ignore: cast_nullable_to_non_nullable +as bool?,showAssetsTrails: freezed == showAssetsTrails ? _self.showAssetsTrails : showAssetsTrails // ignore: cast_nullable_to_non_nullable as bool?,boundary: freezed == boundary ? _self.boundary : boundary // ignore: cast_nullable_to_non_nullable as LocatorBoundary?,description: freezed == description ? _self.description : description // ignore: cast_nullable_to_non_nullable as String?, @@ -2110,7 +2130,15 @@ mixin _$LocatorInput { String? get mapLayerId;/// [mapLayerId] is the id of the map layer to use for the locators that are using this layer. set mapLayerId(String? value);/// [enableSidebar] indicates if the sidebar is enabled for this locator bool get enableSidebar;/// [enableSidebar] indicates if the sidebar is enabled for this locator - set enableSidebar(bool value);/// [boundary] is the geographic bounding box of the locator + set enableSidebar(bool value);/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator + bool get showAssetsLabels;/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator + set showAssetsLabels(bool value);/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator + bool get showGeofencesLabels;/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator + set showGeofencesLabels(bool value);/// [showPoisLabels] indicates if the POI label overlays are visible for this locator + bool get showPoisLabels;/// [showPoisLabels] indicates if the POI label overlays are visible for this locator + set showPoisLabels(bool value);/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator + bool get showAssetsTrails;/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator + set showAssetsTrails(bool value);/// [boundary] is the geographic bounding box of the locator LocatorBoundaryInput? get boundary;/// [boundary] is the geographic bounding box of the locator set boundary(LocatorBoundaryInput? value);/// [description] is the description of the locator String? get description;/// [description] is the description of the locator @@ -2129,7 +2157,7 @@ $LocatorInputCopyWith get copyWith => _$LocatorInputCopyWithImpl { factory $LocatorInputCopyWith(LocatorInput value, $Res Function(LocatorInput) _then) = _$LocatorInputCopyWithImpl; @useResult $Res call({ - String? id, List assetsIds, List geofencesIds, List triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, LocatorBoundaryInput? boundary, String? description + String? id, List assetsIds, List geofencesIds, List triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, bool showAssetsLabels, bool showGeofencesLabels, bool showPoisLabels, bool showAssetsTrails, LocatorBoundaryInput? boundary, String? description }); @@ -2157,7 +2185,7 @@ class _$LocatorInputCopyWithImpl<$Res> /// Create a copy of LocatorInput /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? assetsIds = null,Object? geofencesIds = null,Object? triggersIds = null,Object? expiresAt = freezed,Object? customizationId = freezed,Object? poisIds = null,Object? mapLayerId = freezed,Object? enableSidebar = null,Object? boundary = freezed,Object? description = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? assetsIds = null,Object? geofencesIds = null,Object? triggersIds = null,Object? expiresAt = freezed,Object? customizationId = freezed,Object? poisIds = null,Object? mapLayerId = freezed,Object? enableSidebar = null,Object? showAssetsLabels = null,Object? showGeofencesLabels = null,Object? showPoisLabels = null,Object? showAssetsTrails = null,Object? boundary = freezed,Object? description = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,assetsIds: null == assetsIds ? _self.assetsIds : assetsIds // ignore: cast_nullable_to_non_nullable @@ -2168,6 +2196,10 @@ as DateTime?,customizationId: freezed == customizationId ? _self.customizationId as String?,poisIds: null == poisIds ? _self.poisIds : poisIds // ignore: cast_nullable_to_non_nullable as List,mapLayerId: freezed == mapLayerId ? _self.mapLayerId : mapLayerId // ignore: cast_nullable_to_non_nullable as String?,enableSidebar: null == enableSidebar ? _self.enableSidebar : enableSidebar // ignore: cast_nullable_to_non_nullable +as bool,showAssetsLabels: null == showAssetsLabels ? _self.showAssetsLabels : showAssetsLabels // ignore: cast_nullable_to_non_nullable +as bool,showGeofencesLabels: null == showGeofencesLabels ? _self.showGeofencesLabels : showGeofencesLabels // ignore: cast_nullable_to_non_nullable +as bool,showPoisLabels: null == showPoisLabels ? _self.showPoisLabels : showPoisLabels // ignore: cast_nullable_to_non_nullable +as bool,showAssetsTrails: null == showAssetsTrails ? _self.showAssetsTrails : showAssetsTrails // ignore: cast_nullable_to_non_nullable as bool,boundary: freezed == boundary ? _self.boundary : boundary // ignore: cast_nullable_to_non_nullable as LocatorBoundaryInput?,description: freezed == description ? _self.description : description // ignore: cast_nullable_to_non_nullable as String?, @@ -2267,10 +2299,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, List assetsIds, List geofencesIds, List triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, LocatorBoundaryInput? boundary, String? description)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, List assetsIds, List geofencesIds, List triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, bool showAssetsLabels, bool showGeofencesLabels, bool showPoisLabels, bool showAssetsTrails, LocatorBoundaryInput? boundary, String? description)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _LocatorInput() when $default != null: -return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_that.expiresAt,_that.customizationId,_that.poisIds,_that.mapLayerId,_that.enableSidebar,_that.boundary,_that.description);case _: +return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_that.expiresAt,_that.customizationId,_that.poisIds,_that.mapLayerId,_that.enableSidebar,_that.showAssetsLabels,_that.showGeofencesLabels,_that.showPoisLabels,_that.showAssetsTrails,_that.boundary,_that.description);case _: return orElse(); } @@ -2288,10 +2320,10 @@ return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_t /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? id, List assetsIds, List geofencesIds, List triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, LocatorBoundaryInput? boundary, String? description) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? id, List assetsIds, List geofencesIds, List triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, bool showAssetsLabels, bool showGeofencesLabels, bool showPoisLabels, bool showAssetsTrails, LocatorBoundaryInput? boundary, String? description) $default,) {final _that = this; switch (_that) { case _LocatorInput(): -return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_that.expiresAt,_that.customizationId,_that.poisIds,_that.mapLayerId,_that.enableSidebar,_that.boundary,_that.description);case _: +return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_that.expiresAt,_that.customizationId,_that.poisIds,_that.mapLayerId,_that.enableSidebar,_that.showAssetsLabels,_that.showGeofencesLabels,_that.showPoisLabels,_that.showAssetsTrails,_that.boundary,_that.description);case _: throw StateError('Unexpected subclass'); } @@ -2308,10 +2340,10 @@ return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_t /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, List assetsIds, List geofencesIds, List triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, LocatorBoundaryInput? boundary, String? description)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, List assetsIds, List geofencesIds, List triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, bool showAssetsLabels, bool showGeofencesLabels, bool showPoisLabels, bool showAssetsTrails, LocatorBoundaryInput? boundary, String? description)? $default,) {final _that = this; switch (_that) { case _LocatorInput() when $default != null: -return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_that.expiresAt,_that.customizationId,_that.poisIds,_that.mapLayerId,_that.enableSidebar,_that.boundary,_that.description);case _: +return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_that.expiresAt,_that.customizationId,_that.poisIds,_that.mapLayerId,_that.enableSidebar,_that.showAssetsLabels,_that.showGeofencesLabels,_that.showPoisLabels,_that.showAssetsTrails,_that.boundary,_that.description);case _: return null; } @@ -2323,7 +2355,7 @@ return $default(_that.id,_that.assetsIds,_that.geofencesIds,_that.triggersIds,_t @JsonSerializable() class _LocatorInput extends LocatorInput { - _LocatorInput({this.id, this.assetsIds = const [], this.geofencesIds = const [], this.triggersIds = const [], @TimestampOrNullConverter() this.expiresAt, this.customizationId, this.poisIds = const [], this.mapLayerId, this.enableSidebar = false, this.boundary, this.description}): super._(); + _LocatorInput({this.id, this.assetsIds = const [], this.geofencesIds = const [], this.triggersIds = const [], @TimestampOrNullConverter() this.expiresAt, this.customizationId, this.poisIds = const [], this.mapLayerId, this.enableSidebar = true, this.showAssetsLabels = false, this.showGeofencesLabels = false, this.showPoisLabels = false, this.showAssetsTrails = true, this.boundary, this.description}): super._(); factory _LocatorInput.fromJson(Map json) => _$LocatorInputFromJson(json); /// [id] is the UUIDv4 identifier of the locator @@ -2344,6 +2376,14 @@ class _LocatorInput extends LocatorInput { @override String? mapLayerId; /// [enableSidebar] indicates if the sidebar is enabled for this locator @override@JsonKey() bool enableSidebar; +/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator +@override@JsonKey() bool showAssetsLabels; +/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator +@override@JsonKey() bool showGeofencesLabels; +/// [showPoisLabels] indicates if the POI label overlays are visible for this locator +@override@JsonKey() bool showPoisLabels; +/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator +@override@JsonKey() bool showAssetsTrails; /// [boundary] is the geographic bounding box of the locator @override LocatorBoundaryInput? boundary; /// [description] is the description of the locator @@ -2364,7 +2404,7 @@ Map toJson() { @override String toString() { - return 'LocatorInput(id: $id, assetsIds: $assetsIds, geofencesIds: $geofencesIds, triggersIds: $triggersIds, expiresAt: $expiresAt, customizationId: $customizationId, poisIds: $poisIds, mapLayerId: $mapLayerId, enableSidebar: $enableSidebar, boundary: $boundary, description: $description)'; + return 'LocatorInput(id: $id, assetsIds: $assetsIds, geofencesIds: $geofencesIds, triggersIds: $triggersIds, expiresAt: $expiresAt, customizationId: $customizationId, poisIds: $poisIds, mapLayerId: $mapLayerId, enableSidebar: $enableSidebar, showAssetsLabels: $showAssetsLabels, showGeofencesLabels: $showGeofencesLabels, showPoisLabels: $showPoisLabels, showAssetsTrails: $showAssetsTrails, boundary: $boundary, description: $description)'; } @@ -2375,7 +2415,7 @@ abstract mixin class _$LocatorInputCopyWith<$Res> implements $LocatorInputCopyWi factory _$LocatorInputCopyWith(_LocatorInput value, $Res Function(_LocatorInput) _then) = __$LocatorInputCopyWithImpl; @override @useResult $Res call({ - String? id, List assetsIds, List geofencesIds, List triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, LocatorBoundaryInput? boundary, String? description + String? id, List assetsIds, List geofencesIds, List triggersIds,@TimestampOrNullConverter() DateTime? expiresAt, String? customizationId, List poisIds, String? mapLayerId, bool enableSidebar, bool showAssetsLabels, bool showGeofencesLabels, bool showPoisLabels, bool showAssetsTrails, LocatorBoundaryInput? boundary, String? description }); @@ -2392,7 +2432,7 @@ class __$LocatorInputCopyWithImpl<$Res> /// Create a copy of LocatorInput /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? assetsIds = null,Object? geofencesIds = null,Object? triggersIds = null,Object? expiresAt = freezed,Object? customizationId = freezed,Object? poisIds = null,Object? mapLayerId = freezed,Object? enableSidebar = null,Object? boundary = freezed,Object? description = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? assetsIds = null,Object? geofencesIds = null,Object? triggersIds = null,Object? expiresAt = freezed,Object? customizationId = freezed,Object? poisIds = null,Object? mapLayerId = freezed,Object? enableSidebar = null,Object? showAssetsLabels = null,Object? showGeofencesLabels = null,Object? showPoisLabels = null,Object? showAssetsTrails = null,Object? boundary = freezed,Object? description = freezed,}) { return _then(_LocatorInput( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,assetsIds: null == assetsIds ? _self.assetsIds : assetsIds // ignore: cast_nullable_to_non_nullable @@ -2403,6 +2443,10 @@ as DateTime?,customizationId: freezed == customizationId ? _self.customizationId as String?,poisIds: null == poisIds ? _self.poisIds : poisIds // ignore: cast_nullable_to_non_nullable as List,mapLayerId: freezed == mapLayerId ? _self.mapLayerId : mapLayerId // ignore: cast_nullable_to_non_nullable as String?,enableSidebar: null == enableSidebar ? _self.enableSidebar : enableSidebar // ignore: cast_nullable_to_non_nullable +as bool,showAssetsLabels: null == showAssetsLabels ? _self.showAssetsLabels : showAssetsLabels // ignore: cast_nullable_to_non_nullable +as bool,showGeofencesLabels: null == showGeofencesLabels ? _self.showGeofencesLabels : showGeofencesLabels // ignore: cast_nullable_to_non_nullable +as bool,showPoisLabels: null == showPoisLabels ? _self.showPoisLabels : showPoisLabels // ignore: cast_nullable_to_non_nullable +as bool,showAssetsTrails: null == showAssetsTrails ? _self.showAssetsTrails : showAssetsTrails // ignore: cast_nullable_to_non_nullable as bool,boundary: freezed == boundary ? _self.boundary : boundary // ignore: cast_nullable_to_non_nullable as LocatorBoundaryInput?,description: freezed == description ? _self.description : description // ignore: cast_nullable_to_non_nullable as String?, diff --git a/lib/src/locator/locator.g.dart b/lib/src/locator/locator.g.dart index 0dd3df2..af74a05 100644 --- a/lib/src/locator/locator.g.dart +++ b/lib/src/locator/locator.g.dart @@ -133,6 +133,10 @@ _Locator _$LocatorFromJson(Map json) => _Locator( ?.map((e) => e as String) .toList(), enableSidebar: json['enableSidebar'] as bool?, + showAssetsLabels: json['showAssetsLabels'] as bool?, + showGeofencesLabels: json['showGeofencesLabels'] as bool?, + showPoisLabels: json['showPoisLabels'] as bool?, + showAssetsTrails: json['showAssetsTrails'] as bool?, boundary: json['boundary'] == null ? null : LocatorBoundary.fromJson(json['boundary'] as Map), @@ -166,6 +170,10 @@ Map _$LocatorToJson(_Locator instance) => { 'pois': instance.pois?.map((e) => e.toJson()).toList(), 'poisIds': instance.poisIds, 'enableSidebar': instance.enableSidebar, + 'showAssetsLabels': instance.showAssetsLabels, + 'showGeofencesLabels': instance.showGeofencesLabels, + 'showPoisLabels': instance.showPoisLabels, + 'showAssetsTrails': instance.showAssetsTrails, 'boundary': instance.boundary?.toJson(), 'description': instance.description, }; @@ -213,7 +221,11 @@ _LocatorInput _$LocatorInputFromJson( (json['poisIds'] as List?)?.map((e) => e as String).toList() ?? const [], mapLayerId: json['mapLayerId'] as String?, - enableSidebar: json['enableSidebar'] as bool? ?? false, + enableSidebar: json['enableSidebar'] as bool? ?? true, + showAssetsLabels: json['showAssetsLabels'] as bool? ?? false, + showGeofencesLabels: json['showGeofencesLabels'] as bool? ?? false, + showPoisLabels: json['showPoisLabels'] as bool? ?? false, + showAssetsTrails: json['showAssetsTrails'] as bool? ?? true, boundary: json['boundary'] == null ? null : LocatorBoundaryInput.fromJson(json['boundary'] as Map), @@ -231,6 +243,10 @@ Map _$LocatorInputToJson(_LocatorInput instance) => 'poisIds': instance.poisIds, 'mapLayerId': instance.mapLayerId, 'enableSidebar': instance.enableSidebar, + 'showAssetsLabels': instance.showAssetsLabels, + 'showGeofencesLabels': instance.showGeofencesLabels, + 'showPoisLabels': instance.showPoisLabels, + 'showAssetsTrails': instance.showAssetsTrails, 'boundary': instance.boundary?.toJson(), 'description': instance.description, }; diff --git a/lib/src/locator/src/locator.dart b/lib/src/locator/src/locator.dart index 6493ae4..d89460b 100644 --- a/lib/src/locator/src/locator.dart +++ b/lib/src/locator/src/locator.dart @@ -83,6 +83,18 @@ abstract class Locator with _$Locator { /// [enableSidebar] indicates if the sidebar is enabled for this locator bool? enableSidebar, + /// [showAssetsLabels] indicates if the asset label overlays are visible for this locator + bool? showAssetsLabels, + + /// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator + bool? showGeofencesLabels, + + /// [showPoisLabels] indicates if the POI label overlays are visible for this locator + bool? showPoisLabels, + + /// [showAssetsTrails] indicates if the asset trail lines are visible for this locator + bool? showAssetsTrails, + /// [boundary] is the geographic bounding box of the locator LocatorBoundary? boundary, @@ -461,6 +473,10 @@ abstract class Locator with _$Locator { } enableSidebar + showAssetsLabels + showGeofencesLabels + showPoisLabels + showAssetsTrails boundary { topleft { latitude diff --git a/lib/src/locator/src/locator_input.dart b/lib/src/locator/src/locator_input.dart index 62a5dce..57ff2c9 100644 --- a/lib/src/locator/src/locator_input.dart +++ b/lib/src/locator/src/locator_input.dart @@ -30,7 +30,19 @@ abstract class LocatorInput with _$LocatorInput { String? mapLayerId, /// [enableSidebar] indicates if the sidebar is enabled for this locator - @Default(false) bool enableSidebar, + @Default(true) bool enableSidebar, + + /// [showAssetsLabels] indicates if the asset label overlays are visible for this locator + @Default(false) bool showAssetsLabels, + + /// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator + @Default(false) bool showGeofencesLabels, + + /// [showPoisLabels] indicates if the POI label overlays are visible for this locator + @Default(false) bool showPoisLabels, + + /// [showAssetsTrails] indicates if the asset trail lines are visible for this locator + @Default(true) bool showAssetsTrails, /// [boundary] is the geographic bounding box of the locator LocatorBoundaryInput? boundary, diff --git a/pubspec.yaml b/pubspec.yaml index 8410d27..6632a2b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ description: Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API. name: layrz_models -version: "3.7.3" +version: "3.7.4" repository: https://github.com/goldenm-software/layrz_models environment: