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
-
- Object
- ModelFieldValue<
GeoValue> - ModelGeoValue
- Implemented types
- Annotations
Constructors
- ModelGeoValue([GeoValue? value])
-
Define a model GeoValue that stores location information.
constfactory
- ModelGeoValue.fromDouble({required double latitude, required double longitude, double? radiusKm})
-
Define a model GeoValue that stores location information.
constfactory
- 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.
constfactory
Properties
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.