copyWith method
Creates a copy of this config with the given fields replaced.
Implementation
LoadingConfig copyWith({
Widget? pageWidget,
Widget? loadMoreWidget,
}) {
return LoadingConfig(
pageWidget: pageWidget ?? this.pageWidget,
loadMoreWidget: loadMoreWidget ?? this.loadMoreWidget,
);
}