BorderRadius class

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 setteroverride
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

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant BorderRadius other) bool
The equality operator.
override

Constants

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