ClassBreaksRenderer constructor
- String fieldName = '',
- List<
ClassBreak> classBreaks = const [],
Creates a new class breaks renderer with the given class breaks applied to the given field.
Parameters:
fieldName
— The field name that the class breaks apply to.classBreaks
— The collection of class breaks to apply to the given field.
Implementation
factory ClassBreaksRenderer({
String fieldName = '',
List<ClassBreak> classBreaks = const [],
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreFieldName = _CString(fieldName);
final coreClassBreaks = classBreaks.toMutableArray(
valueType: _ElementType.classBreak,
);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClassBreaksRenderer_createWith(
coreFieldName.bytes,
coreClassBreaks._handle,
errorHandler,
);
});
final ClassBreaksRenderer object =
Renderer._instanceCache.instanceWith(handle);
object._classBreaks.value.setCache(classBreaks);
return object;
}