copyWith method
AppBarConfig
copyWith({
- Color? backgroundColor,
- double? appBarHeight,
- WidgetBuilder? leadIconBuilder,
- BaseTextStyle? titleStyle,
- BaseTextStyle? actionsStyle,
- int? titleMaxLength,
- double? leftAndRightPadding,
- double? itemSpacing,
- EdgeInsets? titlePadding,
- double? iconSize,
- SystemUiOverlayStyle? systemUiOverlayStyle,
- bool? showDefaultBottom,
Implementation
AppBarConfig copyWith({
Color? backgroundColor,
double? appBarHeight,
WidgetBuilder? leadIconBuilder,
BaseTextStyle? titleStyle,
BaseTextStyle? actionsStyle,
int? titleMaxLength,
double? leftAndRightPadding,
double? itemSpacing,
EdgeInsets? titlePadding,
double? iconSize,
SystemUiOverlayStyle? systemUiOverlayStyle,
bool? showDefaultBottom,
}) {
return AppBarConfig(
backgroundColor: backgroundColor ?? _backgroundColor,
appBarHeight: appBarHeight ?? _appBarHeight,
leadIconBuilder: leadIconBuilder ?? _leadIconBuilder,
titleStyle: titleStyle ?? _titleStyle,
actionsStyle: actionsStyle ?? _actionsStyle,
titleMaxLength: titleMaxLength ?? _titleMaxLength,
leftAndRightPadding: leftAndRightPadding ?? _leftAndRightPadding,
itemSpacing: itemSpacing ?? _itemSpacing,
titlePadding: titlePadding ?? _titlePadding,
iconSize: iconSize ?? _iconSize,
systemUiOverlayStyle: systemUiOverlayStyle ?? _systemOverlayStyle,
showDefaultBottom: showDefaultBottom ?? _showDefaultBottom,
);
}