name property

String get name

Implementation

String get name => _name;
set name (String value)

Implementation

set name(String value) {
  if (value.isEmpty) {
    throw LSLException('Node name cannot be empty');
  }
  final int result = lsl_set_name(
    xmlPtr,
    value.toNativeUtf8(allocator: allocate).cast<Char>(),
  );
  if (result == 0) {
    throw LSLException('Failed to set node name: $value');
  }
  _name = value;
}