TableBorder.all constructor

TableBorder.all({
  1. Dim width = const Dim.px(1),
  2. BorderStyle style = BorderStyle.solid,
  3. Color? color,
  4. BorderRadiusData? borderRadius,
})

Creates a TableBorder where all sides share the same border properties.

Implementation

factory TableBorder.all({
  Dim width = const Dim.px(1),
  BorderStyle style = BorderStyle.solid,
  Color? color,
  BorderRadiusData? borderRadius,
}) {
  final side = BorderSideData(
    color: color,
    width: width,
    style: style,
  );
  return TableBorder(
    top: side,
    right: side,
    bottom: side,
    left: side,
    horizontalInside: side,
    verticalInside: side,
    borderRadius: borderRadius,
  );
}