FeatureStateSelector class final

The features whose state to set, read, or remove.

See mln_feature_state_selector in the C API reference.

Constructors

FeatureStateSelector({required String sourceId, String sourceLayerId = '', FeatureId? featureId, String stateKey = ''})
const

Properties

featureId → FeatureId?
The feature's ID. Setting or reading state needs it. Without it, MapHandle.removeFeatureState() removes the state of every feature in the source layer.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId → String
final
sourceLayerId → String
The source layer, for a vector source. Empty for other sources.
final
stateKey → String
The one key that MapHandle.removeFeatureState() removes. It needs feature_id. Empty removes every key.
final

Methods

copyWith({String? sourceId, String? sourceLayerId, FeatureId? featureId, String? stateKey}) → FeatureStateSelector
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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