1>
import 'package:lms3_flutter/lms/ui_utils.dart';

3>

4>
if (currentPage == BEGIN_PAGE) {
controller.finishRefresh(
value.data!.list!.isNotEmpty
? IndicatorResult.success
: IndicatorResult.noMore,
true);
}
controller.finishLoad(
value.data!.list!.length == widget.pageSize
? IndicatorResult.success
: IndicatorResult.noMore,
true);