@@ -88,25 +88,14 @@ class AdvancedPaginatedDataTable extends StatefulWidget {
8888 this .addEmptyRows = true ,
8989 this .loadingWidget,
9090 this .errorWidget,
91- }) : assert (actions == null || (actions != null && header != null )),
92- assert (columns != null ),
93- assert (dragStartBehavior != null ),
91+ }) : assert (actions == null || header != null ),
9492 assert (columns.isNotEmpty),
9593 assert (sortColumnIndex == null ||
9694 (sortColumnIndex >= 0 && sortColumnIndex < columns.length)),
97- assert (sortAscending != null ),
98- assert (dataRowHeight != null ),
99- assert (headingRowHeight != null ),
100- assert (horizontalMargin != null ),
101- assert (columnSpacing != null ),
102- assert (showCheckboxColumn != null ),
103- assert (showFirstLastButtons != null ),
104- assert (rowsPerPage != null ),
10595 assert (rowsPerPage > 0 ),
10696 assert (() {
10797 if (onRowsPerPageChanged != null ) {
108- assert (availableRowsPerPage != null &&
109- availableRowsPerPage.contains (rowsPerPage));
98+ assert (availableRowsPerPage.contains (rowsPerPage));
11099 }
111100 return true ;
112101 }()),
0 commit comments