removeFeatureState method

Future<void> removeFeatureState(
  1. String sourceId,
  2. String? sourceLayerId,
  3. String featureId,
  4. String? stateKey,
)

Removes entries from a feature state object.

Remove a specified property or all property from a feature's state object, depending on the value of stateKey.

Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getStateFeature.

Implementation

Future<void> removeFeatureState(String sourceId, String? sourceLayerId,
        String featureId, String? stateKey) =>
    _mapInterface.removeFeatureState(
        sourceId, sourceLayerId, featureId, stateKey);