writeDrawText method

void writeDrawText(
  1. VectorGraphicsBuffer buffer,
  2. int textId,
  3. int? fillId,
  4. int? strokeId,
  5. 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);
}