appendLine method
Appends the str followed by a CRLF or LF to the end of the curent
StringBuilder object. If crlf is true, then a CRLF line ending is
used. Otherwise a LF line ending is used.
Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText. Throws an ArgumentError if a string argument contains a NUL character.
Implementation
void appendLine(String str, bool crlf) {
final h = _handle;
using((arena) {
final r = _CkStringBuilder_AppendLine(
h,
_toNative(arena, str, 'str'),
crlf ? 1 : 0,
);
if (r == 0) {
throw _fail('appendLine');
}
});
}