FeatureCollection.withItem constructor

FeatureCollection.withItem(
  1. Item item
)

Creates a feature collection object from a PortalItem.

Parameters:

Implementation

factory FeatureCollection.withItem(Item item) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureCollection_createWithItem(
        item._handle, errorHandler);
  });
  return FeatureCollection._withHandle(handle);
}