copyWith method
ThemeExtension<PagingHelperViewTheme>
copyWith({
- WidgetBuilder? loadingViewBuilder,
- ErrorWidgetBuilder? errorViewBuilder,
- WidgetBuilder? endLoadingViewBuilder,
- EndErrorWidgetBuilder? endErrorViewBuilder,
- bool? enableRefreshIndicator,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<PagingHelperViewTheme> copyWith({
WidgetBuilder? loadingViewBuilder,
ErrorWidgetBuilder? errorViewBuilder,
WidgetBuilder? endLoadingViewBuilder,
EndErrorWidgetBuilder? endErrorViewBuilder,
bool? enableRefreshIndicator,
}) {
return PagingHelperViewTheme(
loadingViewBuilder: loadingViewBuilder ?? loadingViewBuilder,
errorViewBuilder: errorViewBuilder ?? this.errorViewBuilder,
endLoadingViewBuilder:
endLoadingViewBuilder ?? this.endLoadingViewBuilder,
endErrorViewBuilder: endErrorViewBuilder ?? this.endErrorViewBuilder,
enableRefreshIndicator:
enableRefreshIndicator ?? this.enableRefreshIndicator,
);
}