CornerRounding class

Defines the amount and quality of rounding around a given vertex of a shape.

radius defines the radius of the circle which forms the basis of the rounding for the vertex. smoothing defines the amount by which the curve is extended from the circular arc around the corner to the edge between vertices.

Each corner of a shape can be thought of as either:

  1. unrounded (with a corner radius of 0 and no smoothing).
  2. rounded with only a circular arc (with smoothing of 0). In this case, the rounding around the corner follows an approximated circular arc between the edges to adjacent vertices.
  3. rounded with three curves: There is an inner circular arc and two symmetric flanking curves. The flanking curves determine the curvature from the inner curve to the edges, with a value of 0 (no smoothing) meaning that it is purely a circular curve and a value of 1 meaning that the flanking curves are maximized between the inner curve and the edges.
Annotations

Constructors

CornerRounding({double radius = 0.0, double smoothing = 0.0})
Creates a CornerRounding.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
radius → double
The radius of the circle which defines the inner rounding arc of the corner.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
smoothing → double
The amount by which the arc is smoothed by extending the curve from the inner circular arc to the edge between vertices.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

unrounded → const CornerRounding
A CornerRounding with a radius of zero, producing a sharp corner at a vertex.