copyCellAuxRangeFrom method
Copies [srcStart, srcStart + count) auxiliary attributes from source to [dstStart, dstStart + count).
Implementation
void copyCellAuxRangeFrom(
Buffer source,
int dstStart,
int srcStart,
int count,
) {
if (count <= 0) return;
final srcUl = source._underlineColors;
if (srcUl != null) {
(_underlineColors ??= Uint32List(
width * height,
)).setRange(dstStart, dstStart + count, srcUl, srcStart);
} else {
_underlineColors?.fillRange(dstStart, dstStart + count, 0);
}
final srcUris = source._uris;
if (srcUris != null) {
(_uris ??= List<String?>.filled(
width * height,
null,
)).setRange(dstStart, dstStart + count, srcUris, srcStart);
} else {
_uris?.fillRange(dstStart, dstStart + count, null);
}
}