TableBorder.all constructor
TableBorder.all({
- Dim width = const Dim.px(1),
- BorderStyle style = BorderStyle.solid,
- Color? color,
- 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,
);
}