loadMoreButton method

Widget loadMoreButton()

Implementation

Widget loadMoreButton() {
  /// Table Load More
  if (isLoading && rows.isNotEmpty) {
    return const Center(child: CircularProgressIndicator());
  } else if (rows.isNotEmpty && !allItemsFetched) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        SizedBox(
          width: 300,
          child: ElevatedButton(onPressed: loadMoreButtonOnPressed, child: const Text('Load More')),
        ),
      ],
    );
  } else {
    return const SizedBox.shrink();
  }
}