FeatureCollection.withItem constructor
- Item item
Creates a feature collection object from a PortalItem.
Parameters:
item
— An Item (only PortalItem are supported).
Implementation
factory FeatureCollection.withItem(Item item) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_FeatureCollection_createWithItem(
item._handle, errorHandler);
});
return FeatureCollection._withHandle(handle);
}