updateFeature method

Future<void> updateFeature(
  1. Feature feature
)

Updates a feature in the table.

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

Updating a feature from 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.canUpdate to determine if this operation is allowed.

Parameters:

  • feature — The feature.

Return Value: A Future that has no return value.

Implementation

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