stateSnapshot property

StandardPlaceLabelsState get stateSnapshot

A feature state.

This is a snapshot of the state that the feature had when it was interacted with. To update and read the original state, use MapboxMap/setFeatureState() and MapboxMap/getFeatureState().

Implementation

StandardPlaceLabelsState get stateSnapshot {
  return StandardPlaceLabelsState()
    ..hide = state["hide"] as bool?
    ..highlight = state["highlight"] as bool?
    ..select = state["select"] as bool?;
}