itemBuilder method

Widget itemBuilder(
  1. BuildContext context,
  2. int index
)

Implementation

Widget itemBuilder(BuildContext context, int index) {
  if (isFirst && list.isEmpty) {
    return loadingView();
  } else {
    if (list.isEmpty) {
      return noDataView();
    } else {
      return itemBuild(context, index);
    }
  }
}