A radius for either circular or elliptical shapes.

Constants

zero Radius

A radius with x and y values set to zero.

const Radius.circular(0.0)

Static Methods

lerp(Radius a, Radius b, double t) Radius

Linearly interpolate between two radii.

Constructors

Radius.circular(double radius)

Constructs a circular radius. x and y will have the same radius value.

const
Radius.elliptical(double x, double y)

Constructs an elliptical radius with the given radii.

const

Properties

hashCode int

read-only
x double

The radius value on the horizontal axis.

read-only
y double

The radius value on the vertical axis.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

Methods

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited