textValue property
String
get
textValue
Gets the text value of this element (if it has text content)
Implementation
String get textValue => _lslValue();
set
textValue
(String value)
Sets the text value of this element
Implementation
set textValue(String value) {
if (value.isEmpty) {
throw LSLException('Text value cannot be empty');
}
final int result = lsl_set_value(
xmlPtr,
value.toNativeUtf8(allocator: allocate).cast<Char>(),
);
if (result == 0) {
throw LSLException('Failed to set text value: $value');
}
}