Radius class
A radius for either circular or elliptical shapes.
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
Methods
-
clamp(
{Radius? minimum, Radius? maximum}) → Radius - Returns this Radius, with values clamped to the given min and max Radius values.
-
clampValues(
{double? minimumX, double? minimumY, double? maximumX, double? maximumY}) → Radius - Returns this Radius, with values clamped to the given min and max values in each dimension
-
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 %(
double operand) → Radius - Modulo (remainder) operator.
-
operator *(
double operand) → Radius - Multiplication operator.
-
operator +(
Radius other) → Radius - Binary addition operator.
-
operator -(
Radius other) → Radius - Binary subtraction operator.
-
operator /(
double operand) → Radius - Division operator.
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Radius - Unary negation operator.
-
operator ~/(
double operand) → Radius - Integer (truncating) division operator.