30 lines
1.1 KiB
Dart
30 lines
1.1 KiB
Dart
class MapSettingsModalState {
|
|
final bool isAllGeomarksActive;
|
|
final bool isAllGeozonesActive;
|
|
final bool isRestrictedDrivingZoneActive;
|
|
final bool isParkingZoneActive;
|
|
final bool isRestrictedParkingZoneActive;
|
|
|
|
MapSettingsModalState({
|
|
this.isAllGeomarksActive = true,
|
|
this.isAllGeozonesActive = true,
|
|
this.isRestrictedDrivingZoneActive = true,
|
|
this.isParkingZoneActive = true,
|
|
this.isRestrictedParkingZoneActive = true,
|
|
});
|
|
|
|
MapSettingsModalState copyWith({
|
|
bool? isGeomarksActive,
|
|
bool? isAllGeozonesActive,
|
|
bool? isRestrictedDrivingZoneActive,
|
|
bool? isParkingZoneActive,
|
|
bool? isRestrictedParkingZoneActive,
|
|
}) => MapSettingsModalState(
|
|
isAllGeomarksActive: isGeomarksActive ?? this.isAllGeomarksActive,
|
|
isAllGeozonesActive: isAllGeozonesActive ?? this.isAllGeozonesActive,
|
|
isRestrictedDrivingZoneActive: isRestrictedDrivingZoneActive ?? this.isRestrictedDrivingZoneActive,
|
|
isParkingZoneActive: isParkingZoneActive ?? this.isParkingZoneActive,
|
|
isRestrictedParkingZoneActive: isRestrictedParkingZoneActive ?? this.isRestrictedParkingZoneActive,
|
|
);
|
|
}
|