setChildValue method

bool setChildValue(
  1. String name,
  2. String value
)

Replaces the text content of the first child element named name.

Only works for a child that already has text content (e.g. one made with addChildValue); returns false otherwise, or if there is no such child.

Implementation

bool setChildValue(String name, String value) =>
    _withUtf8(
      name,
      (n) => _withUtf8(value, (v) => lsl_set_child_value(xmlPtr, n, v)),
    ) !=
    0;