Event constructor

Event({
  1. String? id,
  2. String? type,
  3. required LngLat lngLat,
  4. required List<Feature> features,
  5. required Point point,
})

Implementation

factory Event({
  String? id,
  String? type,
  required LngLat lngLat,
  required List<Feature> features,
  required Point point,
}) =>
    Event.fromJsObject(EventJsImpl(
      id: id,
      type: type,
      lngLat: lngLat.jsObject,
      features: features.map((dynamic f) => f.jsObject).toList()
          as List<FeatureJsImpl?>?,
      point: point.jsObject,
    ));