SectorElement class
A sector element.
- Inheritance
-
- Object
- MarkElement<
PaintStyle> - PrimitiveElement
- PathElement
- SectorElement
Constructors
- SectorElement({required Offset center, required double startRadius, required double endRadius, required double startAngle, required double endAngle, BorderRadius? borderRadius, required PaintStyle style, double? rotation, Offset? rotationAxis, String? tag})
- Creates a sector element.
Properties
- borderRadius → BorderRadius?
-
The border radius of this sector.
final
- center → Offset
-
The center point of this sector.
final
- endAngle → double
-
Then end angle of this sector.
final
- endRadius → double
-
The end radius of this sector.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- path → Path
-
The path of this shape.
finalinherited
- rotation → double?
-
The rotation of this element.
finalinherited
- rotationAxis → Offset?
-
The rotation axis of this element.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
segments
→ List<
Segment> -
The path segments of this element.
finalinherited
- startAngle → double
-
The start angle of this sector.
final
- startRadius → double
-
The start radius of this sector.
final
- style → PaintStyle
-
The style of this element.
finalinherited
- tag → String?
-
The tag to indicate correspondence of this element in animation.
finalinherited
Methods
-
draw(
Canvas canvas) → void -
Indicates how this element is drawn.
inherited
-
drawPath(
Path path) → void -
How to draw
path
of this shape.inherited -
lerpFrom(
covariant SectorElement from, double t) → SectorElement -
Linearly interpolate between this element and
from
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas) → void -
Paints this element on
canvas
.inherited -
toSegments(
) → List< Segment> -
Converts this shape to path segments.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override