LandmarkBrowseSessionSettings class Landmark Store
Settings used to configure a LandmarkBrowseSession.
Controls sorting, name filtering, category filtering and an optional reference coordinate used when ordering by distance.
Constructors
- LandmarkBrowseSessionSettings.new({bool descendingOrder = false, LandmarkOrder orderBy = LandmarkOrder.name, String nameFilter = '', int categoryIdFilter = LandmarkStore.invalidLandmarkCategId, Coordinates? coordinates})
-
LandmarkBrowseSessionSettings.fromJson(Map<
String, dynamic> json) -
factory
Properties
- categoryIdFilter ↔ int
-
Category id to filter results. Defaults to LandmarkStore.invalidLandmarkCategId
to include all categories.
getter/setter pair
- coordinates ↔ Coordinates
-
Reference coordinates used when orderBy is LandmarkOrder.distance.
getter/setter pair
- descendingOrder ↔ bool
-
When true sort in descending order. Defaults to
false(ascending).getter/setter pair - hashCode → int
-
The hash code for this object.
no setteroverride
- nameFilter ↔ String
-
Case-insensitive substring filter for landmark names. Defaults to empty (no filter).
getter/setter pair
- orderBy ↔ LandmarkOrder
-
Ordering criteria for results (default: LandmarkOrder.name).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant LandmarkBrowseSessionSettings other) → bool -
The equality operator.
override