runAssertions method

void runAssertions(
  1. int rowsLength,
  2. int columnsLength
)

Implementation

void runAssertions(int rowsLength, int columnsLength) {
  assert(contentCellAlignment != null ||
      columnAlignments != null ||
      rowAlignments != null ||
      contentCellAlignments != null);
  assert(stickyColumnAlignment != null || stickyColumnAlignments != null);
  assert(stickyRowAlignment != null || stickyRowAlignments != null);
  if (columnAlignments != null) {
    assert(columnAlignments!.length == columnsLength);
  }
  if (rowAlignments != null) {
    assert(rowAlignments!.length == rowsLength);
  }
  if (contentCellAlignments != null) {
    assert(contentCellAlignments!.length == rowsLength);
    for (int i = 0; i < contentCellAlignments!.length; i++) {
      assert(contentCellAlignments![i].length == columnsLength);
    }
  }
  if (stickyColumnAlignments != null) {
    assert(stickyColumnAlignments!.length == rowsLength);
  }
  if (stickyRowAlignments != null) {
    assert(stickyRowAlignments!.length == columnsLength);
  }
}