RoundedPolygon class
- Available extensions
Constructors
- RoundedPolygon.circle({int numVertices = 8, double radius = 1, double centerX = 0, double centerY = 0})
-
factory
-
RoundedPolygon.fromFeatures(List<
Feature> features, {double centerX = double.nan, double centerY = double.nan}) -
factory
-
RoundedPolygon.fromVertices(List<
double> vertices, {CornerRounding rounding = CornerRounding.unrounded, List<CornerRounding> ? perVertexRounding, double centerX = double.minPositive, double centerY = double.minPositive}) -
factory
-
RoundedPolygon.fromVerticesNum(int numVertices, {double radius = 1, double centerX = 0, double centerY = 0, CornerRounding rounding = CornerRounding.unrounded, List<
CornerRounding> ? perVertexRounding}) -
factory
-
RoundedPolygon.rectangle({double width = 2, double height = 2, CornerRounding rounding = CornerRounding.unrounded, List<
CornerRounding> ? perVertexRounding, double centerX = 0, double centerY = 0}) -
factory
-
RoundedPolygon.star({required int numVerticesPerRadius, double radius = 1, double innerRadius = 0.5, CornerRounding rounding = CornerRounding.unrounded, CornerRounding? innerRounding, List<
CornerRounding> ? perVertexRounding, double centerX = 0, double centerY = 0}) -
factory
Properties
Methods
-
calculateBounds(
{List< double> ? bounds, bool approximate = true}) → List<double> -
normalized(
) → RoundedPolygon -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPath(
) → Path -
Available on RoundedPolygon, provided by the RoundedPolygonToPathExtension extension
-
toString(
) → String -
A string representation of this object.
inherited
-
transformed(
PointTransformer f) → RoundedPolygon
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited