DynamicEntity class final

A GeoElement that represents a real-world object received from a DynamicEntityDataSource.

Dynamic entities are updated with data coming from a stream. These updates are referred to as observations and are represented by the DynamicEntityObservation class. An observation is a static snapshot of the state of a dynamic entity at a given time. This snapshot includes the associated dynamic entity's location (geometry) as well as all its attributes. For example, an observation for a moving aircraft may include updates to attributes like speed, altitude, and heading in addition to its updated location. While observations remain static, a dynamic entity changes because it's essentially a pointer to the most recent observation.

The properties of a DynamicEntity, such as its attributes and geometry, are updated when new observations are received from the server. You should not cache the DynamicEntity.geometry or DynamicEntity.attributes collection properties as they are completely replaced when a new observation is received for the associated DynamicEntity.

Implemented types

Properties

attributes Map<CaseInsensitiveString, dynamic>
The attributes of the GeoElement as a collection of name/value pairs. Keys are case-insensitive.
no setteroverride
entityId int
A unique identifier for the DynamicEntity.
no setter
geometry Geometry?
The geometry defines the shape and location of the GeoElement.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
onDynamicEntityChanged Stream<DynamicEntityChangedInfo>
Notification that DynamicEntity has changed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLatestObservation() DynamicEntityObservation?
Gets the latest DynamicEntityObservation associated with this dynamic entity.
getObservations({required int maximumObservations}) List<DynamicEntityObservation>
Gets the collection of DynamicEntityObservation objects associated with this dynamic entity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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