TableBorder.all constructor

TableBorder.all({
  1. PdfColor color = PdfColors.black,
  2. double width = 1.0,
  3. BorderStyle style = BorderStyle.solid,
})

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

Implementation

factory TableBorder.all({
  PdfColor color = PdfColors.black,
  double width = 1.0,
  BorderStyle style = BorderStyle.solid,
}) {
  final side = BorderSide(color: color, width: width, style: style);
  return TableBorder(
      top: side,
      right: side,
      bottom: side,
      left: side,
      horizontalInside: side,
      verticalInside: side);
}