MultiPointField class
MultiPointField
The incoming data looks like this:
[
{
"type": "MultiPoint",
"coordinates": [
100.0, 0.0
,
101.0, 1.0
]
},
{
"type": "MultiPoint",
"coordinates": [
100.0, 0.0
,
101.0, 1.0
]
}
]
Constructors
-
MultiPointField({required String type, required List<
List< coordinates})double> ?> -
const
-
MultiPointField.fromJson(Map<
String, dynamic> json) -
Parse the incoming json and return a MultiPointField
Usage, assuming that u parse a incoming json source, then the runtime type is a _InternalLinkedHashMap:
MultiPointField.fromJson(Map<String, dynamic>.from(elem
'location'
))factory
Properties
-
coordinates
→ List<
List< double> ?> -
The coordinates of the MultiPointField.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of the Field, to reconstruct the incoming json data.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited