TableBorder.all constructor

TableBorder.all({
  1. Color color = const Color(0xFF000000),
  2. double width = 1.0,
  3. BorderStyle style = BorderStyle.solid,
  4. BorderRadius borderRadius = BorderRadius.zero,
})

A uniform border with all sides the same color and width.

The sides default to black solid borders, one logical pixel wide.

Implementation

factory TableBorder.all({
  Color color = const Color(0xFF000000),
  double width = 1.0,
  BorderStyle style = BorderStyle.solid,
  BorderRadius borderRadius = BorderRadius.zero,
}) {
  final BorderSide side = BorderSide(color: color, width: width, style: style);
  return TableBorder(top: side, right: side, bottom: side, left: side, horizontalInside: side, verticalInside: side, borderRadius: borderRadius);
}