StarShape class
StarShape is a class that represents a star shape. it have a build that return a Path that represents the shape. it also have a invert method that return a new StarShape that it contains all the properties of StarBorder to control the shape.
Constructors
- StarShape.new({BorderSide side = BorderSide.none, double points = 5, double innerRadiusRatio = 0.4, double pointRounding = 0, double valleyRounding = 0, double rotation = 0, double squash = 0})
- StarShape constructor.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerRadiusRatio → double
-
innerRadiusRatio is the inner radius ratio of the star.
final
- path → Path Function(Size parentSize)
-
path is a function that takes a Size and returns a Path
finalinherited
- pointRounding → double
-
pointRounding is the point rounding of the star.
final
- points → double
-
points is the number of points of the star.
final
- rotation → double
-
rotation is the rotation of the star.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → BorderSide
-
side is the side of the star.
final
- squash → double
-
squash is the squash of the star.
final
- valleyRounding → double
-
valleyRounding is the valley rounding of the star.
final
Methods
-
build(
Size parentSize, {Size? size, Matrix4? transform, AlignmentGeometry? origin = Alignment.center, AlignmentGeometry alignment = Alignment.center, Offset? offset, Offset? translate, double? margin}) → Path -
inherited
-
invert(
) → Shaper -
invert is a function that returns a new Shaper that invert the shape.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited