SubtypeFeatureLayer.withItem constructor
Creates a new subtype feature layer object from a feature service portal item.
Parameters:
item
— A feature service PortalItem.layerId
— The layer id for which to create the layer.
Implementation
factory SubtypeFeatureLayer.withItem({
required Item item,
required int layerId,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_SubtypeFeatureLayer_createWithItem(
item._handle,
layerId,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}