copyWith method

SliderAppBarConfig copyWith({
  1. double? height,
  2. Widget? title,
  3. bool? isTitleCenter,
  4. Color? backgroundColor,
  5. EdgeInsets? padding,
  6. Widget? trailing,
  7. Color? drawerIconColor,
  8. double? drawerIconSize,
  9. bool? isCupertino,
  10. Color? splashColor,
  11. ImageProvider<Object>? drawerOpenIcon,
  12. ImageProvider<Object>? drawerCloseIcon,
  13. AnimationController? animationController,
})

Creates a copy of this configuration with the given fields replaced

Implementation

SliderAppBarConfig copyWith({
  double? height,
  Widget? title,
  bool? isTitleCenter,
  Color? backgroundColor,
  EdgeInsets? padding,
  Widget? trailing,
  Color? drawerIconColor,
  double? drawerIconSize,
  bool? isCupertino,
  Color? splashColor,
  ImageProvider? drawerOpenIcon,
  ImageProvider? drawerCloseIcon,
  AnimationController? animationController,
}) {
  return SliderAppBarConfig(
    title: title ?? this.title,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    padding: padding ?? this.padding,
    trailing: trailing ?? this.trailing,
    drawerIconColor: drawerIconColor ?? this.drawerIconColor,
    drawerIconSize: drawerIconSize ?? this.drawerIconSize,
    isCupertino: isCupertino ?? this.isCupertino,
    splashColor: splashColor ?? this.splashColor,
    drawerOpenIcon: drawerOpenIcon ?? this.drawerOpenIcon,
    drawerCloseIcon: drawerCloseIcon ?? this.drawerCloseIcon,
    animationController: animationController ?? this.animationController,
  );
}