copyWith method

AppBarConfig copyWith({
  1. Color? backgroundColor,
  2. double? appBarHeight,
  3. WidgetBuilder? leadIconBuilder,
  4. BaseTextStyle? titleStyle,
  5. BaseTextStyle? actionsStyle,
  6. int? titleMaxLength,
  7. double? leftAndRightPadding,
  8. double? itemSpacing,
  9. EdgeInsets? titlePadding,
  10. double? iconSize,
  11. SystemUiOverlayStyle? systemUiOverlayStyle,
  12. 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,
  );
}