BorderRadius class
CSS border radius shorthand representing all four corners.
Constructors
- BorderRadius.all(Radius radius)
-
Creates a border radius with equal radius on all four corners.
const
- BorderRadius.circular(Object radius)
- Creates a circular border radius for all corners from a numeric or CSS value.
- BorderRadius.only({Radius topLeft = Radius.zero, Radius topRight = Radius.zero, Radius bottomRight = Radius.zero, Radius bottomLeft = Radius.zero})
-
Creates a border radius for specific corners.
const
Properties
- bottomLeft → Radius
-
Bottom-left corner radius.
final
- bottomRight → Radius
-
Bottom-right corner radius.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topLeft → Radius
-
Top-left corner radius.
final
- topRight → Radius
-
Top-right corner radius.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCss(
) → String - Converts this border radius to CSS shorthand.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- zero → const BorderRadius
- Zero border radius.