update method

void update(
  1. String rootKey,
  2. Object value
)

Updates the content with the specified data.

The given rootKey is updated with the data value.

The value must consist exclusively of DynamicMap, DynamicList, int, double, bool, and String objects.

Collections (maps and lists) in value must not be mutated after calling this method; doing so would leave the DynamicContent in an inconsistent state.

Implementation

void update(String rootKey, Object value) {
  _root.updateKey(rootKey, deepClone(value)!);
  _scheduleCleanup();
}