onLoadPageRequest method
Implementation
Future<PageLoadedState> onLoadPageRequest(LoadPageActionEvent event) async {
final restSpec = transformRequestToRest(event.action, event.context);
if (restSpec == null) {
return PageLoadedState(event.page, event.fullData, false);
}
final restNode =
NodeSpec(event.action.type, restSpec, actions: event.action.actions);
final restEvent = LoadPageActionEvent(
restNode, event.context, event.page, event.pageSize, event.fullData);
return await onLoadPageRest(restEvent);
}