ModelGeoValue class

Define a model GeoValue that stores location information.

The base value is given as value. If not given, latitude and longitude are set to 0.

This can be passed to the server for searching by GeoHash.

位置情報を保存するGeoValueをモデルとして定義します。

ベースの値をvalueとして与えます。与えられなかった場合緯度・経度が0としてセットされます。

これをサーバーに渡すことでGeoHashによる検索が可能です。

Inheritance
Implemented types
Annotations

Constructors

ModelGeoValue([GeoValue? value])
Define a model GeoValue that stores location information.
const
factory
ModelGeoValue.fromDouble({required double latitude, required double longitude, double? radiusKm})
Define a model GeoValue that stores location information.
const
factory
ModelGeoValue.fromJson(DynamicMap json)
Convert from json map to ModelGeoValue.
factory
ModelGeoValue.fromServer([GeoValue? value])
Used to disguise the retrieval of data from the server.
const
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value GeoValue
Actual value.
no setteroverride

Methods

compareTo(ModelGeoValue other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() DynamicMap
Methods for Json serialization.
override
toString() String
A string representation of this object.
override

Operators

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

Constants

kGeoHashKey → const String
Key to save GeoHash.
kLatitudeKey → const String
Key to save latitude.
kLongitudeKey → const String
Key to store longitude.
kSourceKey → const String
Key to store the data source.
typeString → const String
Type key.