UiRadius class
A Radius with a depth.
- Inheritance
- Available extensions
Constructors
- UiRadius.circular(double radius, {double depth = 1.0})
-
Same as Radius.circular but with
depth.const - UiRadius.elliptical(double x, double y, {double depth = 1.0})
-
Same as Radius.elliptical but with
depth.const
Properties
- depth → double
-
The depth of the radius.
final
- depth → double
-
Available on Radius, provided by the UiRadiusExtension extension
The depth of the radius.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → double
-
The radius value on the horizontal axis.
finalinherited
- y → double
-
The radius value on the vertical axis.
finalinherited
Methods
-
clamp(
{Radius? minimum, Radius? maximum}) → UiRadius -
Returns this Radius, with values clamped to the given min and max
Radius values.
override
-
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
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withDepth(
double depth) → UiRadius -
Available on Radius, provided by the UiRadiusExtension extension
Creates a UiRadius with the same x and y values as this radius.
Operators
-
operator %(
double operand) → Radius -
Modulo (remainder) operator.
override
-
operator *(
double operand) → Radius -
Multiplication operator.
override
-
operator +(
Radius other) → Radius -
Binary addition operator.
override
-
operator -(
Radius other) → Radius -
Binary subtraction operator.
override
-
operator /(
double operand) → Radius -
Division operator.
override
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Radius -
Binary subtraction operator.
override
-
operator ~/(
double operand) → Radius -
Integer (truncating) division operator.
override
Static Methods
Constants
- zero → const UiRadius
-
Same as Radius.zero but with depth set to
1.0.