Arc
Draws an arc scaled to fit inside the given rectangle.
It starts from start_angle radians around the oval up to
start_angle +
sweep_angle radians around the oval, with zero radians being the point on
the right hand side of the oval that crosses the horizontal line that
intersects the center of the rectangle and with positive angles going
clockwise around the oval. If use_center is True, the arc is closed back
to the center, forming a circle sector. Otherwise, the arc is not closed,
forming a circle segment.
https://api.flutter.dev/flutter/dart-ui/Canvas/drawArc.html
Inherits: canvas.Shape
Properties
height- The height of the rectangle containing the arc's oval.paint- A style to draw an arc with.start_angle- The starting angle in radians to draw arc from.sweep_angle- The length of the arc in radians.use_center- Whether this arc is closed back to the center, forming a circle sector.width- The width of the rectangle containing the arc's oval.x- The x-axis coordinate of the arc's top left point.y- The y-axis coordinate of the arc's top left point.
Properties
heightclass-attributeinstance-attribute
height: Number = 0The height of the rectangle containing the arc's oval.
paintclass-attributeinstance-attribute
A style to draw an arc with.
start_angleclass-attributeinstance-attribute
start_angle: Number = 0The starting angle in radians to draw arc from.
sweep_angleclass-attributeinstance-attribute
sweep_angle: Number = 0The length of the arc in radians.
use_centerclass-attributeinstance-attribute
use_center: bool = FalseWhether this arc is closed back to the center, forming a circle sector. If not closed (False), this arc forms a circle segment.