drawTextRect method

  1. @override
void drawTextRect(
  1. String text,
  2. double x,
  3. double y,
  4. double w,
  5. double h,
  6. String halign,
  7. String valign,
)
override

Implementation

@override
void drawTextRect(String text, double x, double y, double w, double h,
    String halign, String valign) {
  commands.add(DrawTextRectCommand(
      text, Rect.fromLTWH(x, y, w, h), currentColor, halign, valign));
  onUpdate?.call();
}