copyWith method

  1. @override
ThemeExtension<PagingHelperViewTheme> copyWith({
  1. WidgetBuilder? loadingViewBuilder,
  2. ErrorWidgetBuilder? errorViewBuilder,
  3. WidgetBuilder? endLoadingViewBuilder,
  4. EndErrorWidgetBuilder? endErrorViewBuilder,
  5. 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,
  );
}