BorderRadius class

An immutable set of radii for each corner of a rectangle.

Constructors

BorderRadius.all(Radius radius)
Creates a border radius where all radii are radius.
const
BorderRadius.circular(double radius)
Creates a border radius where all radii are Radius.circular(radius).
BorderRadius.horizontal({Radius left = Radius.zero, Radius right = Radius.zero})
Creates a horizontally symmetrical border radius where the left and right sides of the rectangle have the same radii.
const
BorderRadius.only({Radius topLeft = Radius.zero, Radius topRight = Radius.zero, Radius bottomLeft = Radius.zero, Radius bottomRight = Radius.zero})
Creates a border radius with only the given non-zero values. The other corners will be right angles.
const
BorderRadius.vertical({Radius top = Radius.zero, Radius bottom = Radius.zero})
Creates a vertically symmetric border radius where the top and bottom sides of the rectangle have the same radii.
const

Properties

bottomLeft Radius
The bottom-left Radius.
final
bottomRight Radius
The bottom-right 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
The top-left Radius.
final
topRight Radius
The top-right Radius.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Context context, PdfRect box) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

zero → const BorderRadius
A border radius with all zero radii.