SharpRadius class

Inheritance
Available extensions

Constructors

SharpRadius({required double cornerRadius, required double sharpRatio})
const

Properties

cornerRadius → double
no setter
dg → Radius

Available on Radius, provided by the RadiusExtension extension

no setter
dm → Radius

Available on Radius, provided by the RadiusExtension extension

no setter
h → Radius

Available on Radius, provided by the RadiusExtension extension

no setter
hashCode → int
The hash code for this object.
no setteroverride
r → Radius

Available on Radius, provided by the RadiusExtension extension

Creates adapt Radius using r SizeExtension.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharpRatio → double
final
w → Radius

Available on Radius, provided by the RadiusExtension extension

no setter
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}) → Radius
Returns this Radius, with values clamped to the given min and max Radius values.
inherited
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
inherited
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) → SharpRadius
Modulo (remainder) operator.
override
operator *(double operand) → SharpRadius
Multiplication operator.
override
operator +(Radius other) → Radius
Binary addition operator.
override
operator -(Radius other) → Radius
Binary subtraction operator.
override
operator /(double operand) → SharpRadius
Division operator.
override
operator ==(Object other) → bool
The equality operator.
override
operator unary-() → Radius
Unary negation operator.
override
operator ~/(double operand) → SharpRadius
Integer (truncating) division operator.
override

Static Methods

lerp(SharpRadius? a, SharpRadius? b, double t) → SharpRadius?
Linearly interpolate between two smooth radii.
override

Constants

zero → const SharpRadius