TableBorder class Null safety

Border specification for Table widgets.

This is like Border, with the addition of two sides: the inner horizontal borders between rows and the inner vertical borders between columns.

The sides are represented by BorderSide objects.

Annotations

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, BorderRadius borderRadius = BorderRadius.zero})
Creates a border for a table.
const
TableBorder.all({Color color = const Color(0xFF000000), double width = 1.0, BorderStyle style = BorderStyle.solid, BorderRadius borderRadius = BorderRadius.zero})
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

borderRadius BorderRadius
The BorderRadius to use when painting the corners of this border.
final
bottom BorderSide
The bottom side of this border.
final
dimensions EdgeInsets
The widths of the sides of this border represented as an EdgeInsets.
read-only
hashCode int
The hash code for this object.
read-onlyoverride
horizontalInside BorderSide
The horizontal interior sides of this border.
final
isUniform bool
Whether all the sides of the border (outside and inside) are identical. Uniform borders are typically more efficient to paint.
read-only
left BorderSide
The left side of this border.
final
The right side of this border.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
top BorderSide
The top side of this border.
final
verticalInside BorderSide
The vertical interior sides of this border.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
paint(Canvas canvas, Rect rect, {required Iterable<double> rows, required Iterable<double> columns}) → void
Paints the border around the given Rect on the given Canvas, with the given rows and columns.
scale(double t) TableBorder
Creates a copy of this border but with the widths scaled by the factor t.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

lerp(TableBorder? a, TableBorder? b, double t) TableBorder?
Linearly interpolate between two table borders.