helper/helper library

Functions

beginPath(dynamic context2D) → void
Begin a new path. No-op on non-web platforms.
drawContext2DArc(dynamic context2D, double x, double y, double radius, double startAngle, double endAngle, bool counterclockwise) → void
Add an arc to the current path. No-op on non-web platforms.
drawContext2DLine(dynamic context2D, double x, double y, double x1, double y1) → void
Add a straight line to the current path. No-op on non-web platforms.
fill(dynamic context2D) → void
Fill the current subpath(s). No-op on non-web platforms.
fillRect(dynamic context2D, Size size) → void
Fill a rectangle that covers the given size. No-op on non-web platforms.
fillStyle(dynamic context2D, String fillColor) → void
Set fill style (color/gradient/pattern). No-op on non-web platforms. fillColor expects an 'r,g,b,a' string (same as web helper).
lineCap(dynamic context2D, String lineCap) → void
Set the line cap style (e.g., 'round', 'butt', 'square'). No-op here.
lineWidth(dynamic context2D, double lineWidth) → void
Set the current line width. No-op on non-web platforms.
stroke(dynamic context2D) → void
Stroke the current subpath(s). No-op on non-web platforms.
strokeStyle(dynamic context2D, String strokeColor) → void
Set stroke style (color/gradient/pattern). No-op on non-web platforms. strokeColor expects an 'r,g,b,a' string (same as web helper).