getDefaultBorder static method

TableBorder getDefaultBorder(
  1. BuildContext context,
  2. bool isAlternatingRowColors
)

Computes the default TableBorder based on isAlternatingRowColors.

If alternating, no border (relies on row colors); otherwise, horizontal lines for clear row separation. Uses getDefaultBorderSide for consistency.

Implementation

static TableBorder getDefaultBorder(
        BuildContext context, bool isAlternatingRowColors) =>
    isAlternatingRowColors
        ? const TableBorder()
        : TableBorder(
            bottom: getDefaultBorderSide(context),
            horizontalInside: getDefaultBorderSide(context),
          );