getSublayerWithSubtypeCode method

SubtypeSublayer? getSublayerWithSubtypeCode(
  1. dynamic code
)

Finds a SubtypeSublayer for a feature subtype based on the FeatureSubtype.code.

When working with a particular ArcGISFeature, the FeatureSubtype.code is the value of the ArcGISFeatureLayerInfo.subtypeField field. The corresponding SubtypeSublayer can be found using the value of that field.

Parameters:

  • code — The subtype code of the sublayer to retrieve.

Return Value: The SubtypeSublayer of the subtype code.

Implementation

SubtypeSublayer? getSublayerWithSubtypeCode(
  dynamic code,
) {
  final coreCode = _ElementExtension.fromDartValue(code);
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SubtypeFeatureLayer_getSublayerWithSubtypeCode(
      _handle,
      coreCode._handle,
      errorHandler,
    );
  });
  return SubtypeSublayer._fromHandle(
    objectHandle,
  );
}