refreshViewBuilder method
dynamic
refreshViewBuilder({
- required Widget? child,
- RefreshBuilder? refreshBuilder,
- Widget? onEmpty,
- OnError? onError,
- Widget? onLoading,
Implementation
refreshViewBuilder({
required Widget? child,
RefreshBuilder? refreshBuilder,
Widget? onEmpty,
OnError? onError,
Widget? onLoading,
}) {
final stateBuilder =
controller.obx((state) => child!, onEmpty: onEmpty, onError: onError, onLoading: onLoading);
if (refreshBuilder != null) {
return refreshBuilder(stateBuilder);
} else {
return stateBuilder;
}
}