DrawRectangleGradientV method

void DrawRectangleGradientV(
  1. num posX,
  2. num posY,
  3. num width,
  4. num height,
  5. Color top,
  6. Color bottom,
)

Draw a vertical-gradient-filled rectangle

Implementation

void DrawRectangleGradientV(
  num posX,
  num posY,
  num width,
  num height,
  Color top,
  Color bottom,
) => run(
  () => _debugLabels.DrawRectangleGradientV(posX, posY, width, height, top, bottom),
  () => _flat.DrawRectangleGradientV(
    posX.toInt(),
    posY.toInt(),
    width.toInt(),
    height.toInt(),
    top,
    bottom,
  ),
);