pageView method

Future<void> pageView()

Implementation

Future<void> pageView() async {
  isLoading = true;
  update();

  final resp = await pageViewService.getPageView("pri");

  resp.fold(
    (failure) {
      onError?.call(failure.message);
    },
    (result) {
      model = result;
    },
  );

  isLoading = false;
  update();
}