SearchResult class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

SearchResult.new({required String id, required String name, required String placeName, required double lat, required double lng, required String type, Map<String, String>? addressComponents, double? proximityDistance})
//////////// ////////////
SearchResult.fromJson(Map<String, dynamic> json, {Position? userPosition})
//////////// //////////// Creates a search result from a Mapbox API response
factory

Properties

addressComponents → Map<String, String>?
final
formattedAddress → String
Provides the full formatted address
no setter
formattedDisplayName → String
///////// ///////// Gets a formatted address for display, preserving state names
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
//////////// ////////////
final
lat → double
final
lng → double
final
name → String
final
placeName → String
final
proximityDistance ↔ double?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
final

Methods

getContextAwareDisplayName(Position? userPosition) → String
//////////// //////////// Gets a context-aware display name based on user's current location
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRaliPosition() → RaliPosition
Convert to RaliPosition
toString() → String
A string representation of this object.
inherited

Operators

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