writeDrawText method
void
writeDrawText(
- VectorGraphicsBuffer buffer,
- int textId,
- int? fillId,
- int? strokeId,
- int? patternId,
Implementation
void writeDrawText(
VectorGraphicsBuffer buffer,
int textId,
int? fillId,
int? strokeId,
int? patternId,
) {
assert(fillId != null || strokeId != null);
buffer._checkPhase(_CurrentSection.commands);
buffer._addCommandsTag();
buffer._putUint8(_drawTextTag);
buffer._putUint16(textId);
buffer._putUint16(fillId ?? kMaxId);
buffer._putUint16(strokeId ?? kMaxId);
buffer._putUint16(patternId ?? kMaxId);
}