CreateFeature typedef
CreateFeature =
Feature<T> Function<T extends Geometry>({Bounds<Point<num> > ? bounds, T? geometry, Object? id, Map<String, Object?> ? jsonObject, Map<String, Object?> ? properties})
A function to create a feature of id
, properties
, geometry
+ bounds
.
The id
should be null, int, BigInt or String. Other types not allowed.
If a feature is read from JSON data then an optional jsonObject
contains
an JSON Object for a feature as-is. If source is other than JSON then this
may be unavailable.
Implementation
typedef CreateFeature = Feature<T> Function<T extends Geometry>({
Object? id,
Map<String, Object?>? properties,
T? geometry,
Bounds? bounds,
Map<String, Object?>? jsonObject,
});