getStyleLightProperty method

Future<Object?> getStyleLightProperty(
  1. String propertyName
)

Reads a property of the light of the map's style.

The value can differ in form from the value that was set: a color set as "#ff0000" reads back as ["rgba", 255, 0, 0, 1].

Completes with no value when the light doesn't set the property.

See mln_map_get_style_light_property in the C API reference.

Implementation

Future<Object?> getStyleLightProperty(String propertyName) => _queryOptional(
  _resultObjectOrNull,
  (arena, completion) => raw.mln_map_get_style_light_property(
    _handle.raw,
    nativeStringView(propertyName, arena).value,
    completion,
    nativeDiagnostic,
  ),
);