Feature class

Features are described in section 4.2 of the specification.

Constructors

Feature({required Geometry? geometry, Map<String, Object>? properties, Object? id})
Default constructor.
const
Feature.fromJson(Map<String, dynamic> json)
Creates an object from JSON data.
factory

Properties

geometry Geometry?
Geometry of this Feature.
final
hashCode int
The hash code for this object.
no setterinherited
id Object?
Id of this feature. Either a String or int.
final
properties Map<String, Object>?
Properties of this feature.
final
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>
Converts current object to its JSON representation.
toString() String
A string representation of this object.
override

Operators

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