BorderRadius class abstract

Represents the CSS border-radius property.

Rounds the corners of an element's outer border edge.

Read more: MDN border-radius

Constructors

BorderRadius.all(Radius radius)
Create a border radius with the given radius for all corners.
const
factory
BorderRadius.circular(Unit radius)
Create a border radius with a circular radius of the given value for all corners.
const
factory
BorderRadius.horizontal({Radius? left, Radius? right})
Create a border radius with left and right corners.
const
factory
BorderRadius.only({Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight})
Create a border radius with individual corners.
const
factory
BorderRadius.vertical({Radius? top, Radius? bottom})
Create a border radius with top and bottom corners.
const
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
styles Map<String, String>
The css styles
no setter

Methods

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 ==(Object other) bool
The equality operator.
inherited