Border specification for RenderTable.
This is like Border, with the addition of two sides: the inner horizontal borders and the inner vertical borders.
Static Methods
-
lerp(
TableBorder a, TableBorder b, double t) → TableBorder -
Linearly interpolate between two table borders.
Constructors
- TableBorder({BorderSide top: BorderSide.none, BorderSide right: BorderSide.none, BorderSide bottom: BorderSide.none, BorderSide left: BorderSide.none, BorderSide horizontalInside: BorderSide.none, BorderSide verticalInside: BorderSide.none })
-
Creates a border for a table.
const - TableBorder.all({Color color: const Color(0xFF000000), double width: 1.0 })
-
A uniform border with all sides the same color and width.
factory - TableBorder.symmetric({BorderSide inside: BorderSide.none, BorderSide outside: BorderSide.none })
-
Creates a border for a table where all the interior sides use the same styling and all the exterior sides use the same styling.
factory
Properties
- hashCode → int
-
read-only
- horizontalInside → BorderSide
-
The horizontal interior sides of this border.
read-only - isUniform → bool
-
read-only
- verticalInside → BorderSide
-
The vertical interior sides of this border.
read-only - bottom → BorderSide
-
The bottom side of this border.
read-only, inherited - dimensions → EdgeInsets
-
The widths of the sides of this border represented as an EdgeInsets.
read-only, inherited - left → BorderSide
-
The left side of this border.
read-only, inherited - right → BorderSide
-
The right side of this border.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - top → BorderSide
-
The top side of this border.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
scale(
double t) → TableBorder -
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 -
paint(
Canvas canvas, Rect rect, { BoxShape shape: BoxShape.rectangle, BorderRadius borderRadius: null }) → void -
Paints the border within the given rect on the given canvas.
inherited