isAllBorder static method

bool isAllBorder(
  1. Borders toCompareBorder
)

Check if line style and color is applied for all borders.

Implementation

static bool isAllBorder(Borders toCompareBorder) {
  final CellStyle allBorderStyle = CellStyle(toCompareBorder.workbook);
  return allBorderStyle.borders.all.color != toCompareBorder.all.color ||
      allBorderStyle.borders.all.colorRgb != toCompareBorder.all.colorRgb ||
      allBorderStyle.borders.all.lineStyle != toCompareBorder.all.lineStyle;
}