copyWith method
SliderAppBarConfig
copyWith({
- double? height,
- Widget? title,
- bool? isTitleCenter,
- Color? backgroundColor,
- EdgeInsets? padding,
- Widget? trailing,
- Color? drawerIconColor,
- double? drawerIconSize,
- bool? isCupertino,
- Color? splashColor,
- ImageProvider<
Object> ? drawerOpenIcon, - ImageProvider<
Object> ? drawerCloseIcon, - 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,
);
}