addFeature method

Future<void> addFeature(
  1. Feature feature
)

Adds a feature to the table.

Adding a feature that contains a Geometry causes the geometry to become simplified. This may change a single part geometry to a multipart geometry, or round off X, Y, Z, and M coordinate values that are above the resolution set by the SpatialReference.

Adding a feature to a GeodatabaseFeatureTable in a stand-alone mobile geodatabase created with ArcGIS Pro is not supported when the table participates in a controller dataset, such as a utility network or parcel fabric. Use FeatureTable.canAdd to determine if this operation is allowed.

Parameters:

  • feature — The feature.

Return Value: A Future that has no return value.

Implementation

Future<void> addFeature(
  Feature feature,
) {
  return _addFeature(feature)
      .then((_) => feature._attributes.invalidateCache());
}