getRenderSettings method

MarkerRenderSettings getRenderSettings(
  1. int index
)

Retrieve the render settings for the sketch at index.

If index is invalid a default MarkerRenderSettings instance is returned (callers should treat this as the default styling for that marker).

Parameters

  • index: The zero-based marker index in the sketches collection.

Returns

  • The MarkerRenderSettings currently applied to the sketch, or a default instance when the index is out of range.

Implementation

MarkerRenderSettings getRenderSettings(int index) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'MarkerSketches',
    'getRenderSettings',
    args: index,
  );

  return MarkerRenderSettings.fromJson(resultString['result']);
}