drawRect method

void drawRect({
  1. required int x1,
  2. required int y1,
  3. required int x2,
  4. required int y2,
  5. required Color color,
  6. num radius = 0,
  7. num thickness = 1,
  8. Command? mask,
  9. Channel maskChannel = Channel.luminance,
})

Implementation

void drawRect(
    {required int x1,
    required int y1,
    required int x2,
    required int y2,
    required Color color,
    num radius = 0,
    num thickness = 1,
    Command? mask,
    Channel maskChannel = Channel.luminance}) {
  subCommand = DrawRectCmd(subCommand,
      x1: x1,
      y1: y1,
      x2: x2,
      y2: y2,
      color: color,
      radius: radius,
      thickness: thickness,
      mask: mask,
      maskChannel: maskChannel);
}