refresh method

bool refresh()

Resets the attributes and geometry to the values in the data source.

Discards any in-memory changes to the feature that have not been applied to its table, and reloads the feature's geometry and all attributes.

Return Value: true if the geometry or attributes were updated; false otherwise.

Implementation

bool refresh() {
  final result = _refresh();
  _attributes.invalidateCache();
  return result;
}