getFeatureState method

Future<Object?> getFeatureState(
  1. FeatureStateSelector selector
)

Reads the state of a feature, as a JSON object.

The object is empty when the feature has no state.

See mln_map_get_feature_state in the C API reference.

Implementation

Future<Object?> getFeatureState(FeatureStateSelector selector) => _query(
  _resultObjectOrNull,
  (arena, completion) => raw.mln_map_get_feature_state(
    _handle.raw,
    _writeFeatureStateSelector(selector, arena),
    completion,
    nativeDiagnostic,
  ),
);