function which will crate rows of the table (check example for more details)
List<Widget> Function(T data, int index) createRows;