Skip to main content

CircleBorder

A border with a circle shape.

Inherits: OutlinedBorder

Properties

  • eccentricity - Defines how much the circle deforms to fit a rectangle.

Methods

  • copy - Returns a copy of this object with the specified properties overridden.

Properties

eccentricityclass-attributeinstance-attribute

eccentricity: Number = 0.0

Defines how much the circle deforms to fit a rectangle.

0.0 keeps the shape circular, touching at least two sides of the rectangle. 1.0 fully deforms it into an oval touching all sides.

Methods

copy

copy(
    side: BorderSide | None = None,
    eccentricity: Number | None = None,
) -> CircleBorder

Returns a copy of this object with the specified properties overridden.