drawRect method

  1. @override
void drawRect(
  1. String mode,
  2. double x,
  3. double y,
  4. double w,
  5. double h,
)
override

Implementation

@override
void drawRect(String mode, double x, double y, double w, double h) {
  commands.add(DrawRectCommand(Rect.fromLTWH(x, y, w, h), _buildPaint(mode)));
  onUpdate?.call();
}