A border of a box, comprised of four sides.
Static Methods
Constructors
- Border({BorderSide top: BorderSide.none, BorderSide right: BorderSide.none, BorderSide bottom: BorderSide.none, BorderSide left: BorderSide.none })
-
Creates a border.
const - Border.all({Color color: const Color(0xFF000000), double width: 1.0, BorderStyle style: BorderStyle.solid })
-
A uniform border with all sides the same color and width.
factory
Properties
- bottom → BorderSide
-
The bottom side of this border.
read-only - dimensions → EdgeInsets
-
The widths of the sides of this border represented as an EdgeInsets.
read-only - hashCode → int
-
read-only
- isUniform → bool
-
Whether all four sides of the border are identical.
read-only - left → BorderSide
-
The left side of this border.
read-only - right → BorderSide
-
The right side of this border.
read-only - top → BorderSide
-
The top side of this border.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
paint(
Canvas canvas, Rect rect, { BoxShape shape: BoxShape.rectangle, BorderRadius borderRadius: null }) → void -
Paints the border within the given rect on the given canvas.
-
scale(
double t) → Border -
Creates a new border with the widths of this border multiplied by
t
. -
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited