label static method

CustomLabelTargeting label(
  1. int index,
  2. List<String> values
)

Implementation

static CustomLabelTargeting label(int index, List<String> values) {
  if (index < 0 || index > 4) {
    throw OsmosException(
      errorCode: OsmosErrorCodes.parameterError,
      details: 'Label index must be between 0 and 4, got: $index',
    );
  }
  return CustomLabelTargeting._(
      {'customLabel$index': List<String>.from(values)});
}