ScaleDisplayFilterDefinition.withFilters constructor

ScaleDisplayFilterDefinition.withFilters(
  1. List<ScaleRangeDisplayFilter> filters
)

Creates a new ScaleDisplayFilterDefinition with the specified scale range display filters.

Parameters:

  • filters — The collection of scale range display filters.

Implementation

factory ScaleDisplayFilterDefinition.withFilters(
    List<ScaleRangeDisplayFilter> filters) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreFilters =
      filters.toMutableArray(valueType: _ElementType.scaleRangeDisplayFilter);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ScaleDisplayFilterDefinition_createWithFilters(
        coreFilters._handle, errorHandler);
  });
  final ScaleDisplayFilterDefinition object =
      ScaleDisplayFilterDefinition._withHandle(handle);
  object._filters.value.setCache(filters);
  return object;
}