Radius2 class

Convenience class for creating BorderRadius with named parameters

Inheritance
Available extensions

Constructors

Radius2({double all = 0.0, double? topLeft, double? topRight, double? bottomLeft, double? bottomRight, double? top, double? bottom, double? left, double? right})
Creates BorderRadius with all corners equal to all, or individual corners
Radius2.all(double value)
Creates BorderRadius with all corners equal to value
Radius2.bottom(double value)
Creates BorderRadius with bottom corners equal to value
Radius2.bottomLeft(double value)
Creates BorderRadius with only bottomLeft corner
Radius2.bottomRight(double value)
Creates BorderRadius with only bottomRight corner
Radius2.left(double value)
Creates BorderRadius with left corners equal to value
Radius2.right(double value)
Creates BorderRadius with right corners equal to value
Radius2.top(double value)
Creates BorderRadius with top corners equal to value
Radius2.topLeft(double value)
Creates BorderRadius with only topLeft corner
Radius2.topRight(double value)
Creates BorderRadius with only topRight corner

Properties

bLeftRad BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

no setter
bottomLeft Radius
The bottom-left Radius.
finalinherited
bottomRight Radius
The bottom-right Radius.
finalinherited
bRightRad BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

no setter
geometry BorderRadiusGeometry

Available on BorderRadius, provided by the BorderRadiusChaining extension

Allows implicit conversion to BorderRadiusGeometry
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tLeftRad BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Chainable radius extensions that use the first non-zero radius value as base
no setter
topLeft Radius
The top-left Radius.
finalinherited
topRight Radius
The top-right Radius.
finalinherited
tRightRad BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

no setter

Methods

add(BorderRadiusGeometry other) BorderRadiusGeometry
Returns the sum of two BorderRadiusGeometry objects.
inherited
addToBottomLeft(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Adds the specified value to the existing bottomLeft radius
addToBottomRight(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Adds the specified value to the existing bottomRight radius
addToTopLeft(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Adds the specified value to the existing topLeft radius
addToTopRight(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Adds the specified value to the existing topRight radius
copyWith({Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight}) BorderRadius
Returns a copy of this BorderRadius with the given fields replaced with the new values.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(TextDirection? direction) BorderRadius
Convert this instance into a BorderRadius, so that the radii are expressed for specific physical corners (top-left, top-right, etc) rather than in a direction-dependent manner.
inherited
subtract(BorderRadiusGeometry other) BorderRadiusGeometry
Returns the difference between two BorderRadiusGeometry objects.
inherited
toRRect(Rect rect) RRect
Creates an RRect from the current border radius and a Rect.
inherited
toRSuperellipse(Rect rect) RSuperellipse
Creates an RSuperellipse from the current border radius and a Rect.
inherited
toString() String
A string representation of this object.
inherited
tweenTo(BorderRadius end) BorderRadiusTween

Available on BorderRadius, provided by the BorderRadiusX extension

Create an BorderRadiusTween form this value to the provided end value
withBottomLeft(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Creates new BorderRadius with specified bottomLeft radius
withBottomRight(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Creates new BorderRadius with specified bottomRight radius
withTopLeft(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Creates new BorderRadius with specified topLeft radius
withTopRight(double value) BorderRadius

Available on BorderRadius, provided by the BorderRadiusChaining extension

Creates new BorderRadius with specified topRight radius

Operators

operator %(double other) BorderRadius
Computes the remainder of each corner by the given factor.
inherited
operator *(double other) BorderRadius
Scales each corner of the BorderRadius by the given factor.
inherited
operator +(BorderRadius other) BorderRadius
Returns the sum of two BorderRadius objects.
inherited
operator -(BorderRadius other) BorderRadius
Returns the difference between two BorderRadius objects.
inherited
operator /(double other) BorderRadius
Divides each corner of the BorderRadius by the given factor.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() BorderRadius
Returns the BorderRadius object with each corner negated.
inherited
operator ~/(double other) BorderRadius
Integer divides each corner of the BorderRadius by the given factor.
inherited