CssBorderRadius class sealed
CSS border-radius value.
Supports all CSS shorthand syntaxes:
- Single value:
CssBorderRadius.all(CssLength.px(10))→10px - Two values:
CssBorderRadius.symmetric(topLeftBottomRight, topRightBottomLeft)→10px 20px - Three values:
CssBorderRadius.only(topLeft: ..., topRightBottomLeft: ..., bottomRight: ...)→10px 20px 30px - Four values:
CssBorderRadius.trbl(topLeft, topRight, bottomRight, bottomLeft)→10px 20px 30px 40px
- Implemented types
Constructors
- CssBorderRadius.all(CssLength radius)
-
Same value for all four corners.
factory
- CssBorderRadius.global(CssGlobal global)
-
Global keyword (inherit, initial, unset, revert).
factory
- CssBorderRadius.only({required CssLength topLeft, required CssLength topRightBottomLeft, required CssLength bottomRight})
-
Three-value shorthand.
factory
- CssBorderRadius.raw(String value)
-
Raw CSS value escape hatch.
factory
- CssBorderRadius.symmetric(CssLength topLeftBottomRight, CssLength topRightBottomLeft)
-
Symmetric radius.
factory
- CssBorderRadius.trbl(CssLength topLeft, CssLength topRight, CssLength bottomRight, CssLength bottomLeft)
-
Four-value shorthand (top-left, top-right, bottom-right, bottom-left).
factory
- CssBorderRadius.variable(String varName)
-
CSS variable reference.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCss(
) → String -
Converts this value to its CSS string representation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- zero → const CssBorderRadius
- Zero radius.