copyWith method

Bar copyWith({
  1. Key? key,
  2. List<Widget>? trailing,
  3. List<Widget>? leading,
  4. Widget? child,
  5. Widget? title,
  6. String? titleText,
  7. String? headerText,
  8. String? subtitleText,
  9. Widget? header,
  10. Widget? subtitle,
  11. bool? trailingExpanded,
  12. Alignment? alignment,
  13. Color? backgroundColor,
  14. double? leadingGap,
  15. double? trailingGap,
  16. EdgeInsetsGeometry? padding,
  17. double? height,
  18. bool? useGlass,
  19. BarBackButtonMode? backButton,
  20. bool? ignoreContextSignals,
})

Implementation

Bar copyWith({
  Key? key,
  List<Widget>? trailing,
  List<Widget>? leading,
  Widget? child,
  Widget? title,
  String? titleText,
  String? headerText,
  String? subtitleText,
  Widget? header,
  Widget? subtitle,
  bool? trailingExpanded,
  Alignment? alignment,
  Color? backgroundColor,
  double? leadingGap,
  double? trailingGap,
  EdgeInsetsGeometry? padding,
  double? height,
  bool? useGlass,
  BarBackButtonMode? backButton,
  bool? ignoreContextSignals,
}) =>
    Bar(
      key: key ?? this.key,
      trailing: trailing ?? this.trailing,
      leading: leading ?? this.leading,
      title: title ?? this.title,
      titleText: titleText ?? this.titleText,
      headerText: headerText ?? this.headerText,
      subtitleText: subtitleText ?? this.subtitleText,
      header: header ?? this.header,
      subtitle: subtitle ?? this.subtitle,
      trailingExpanded: trailingExpanded ?? this.trailingExpanded,
      alignment: alignment ?? this.alignment,
      padding: padding ?? this.padding,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      leadingGap: leadingGap ?? this.leadingGap,
      trailingGap: trailingGap ?? this.trailingGap,
      height: height ?? this.height,
      useGlass: useGlass ?? this.useGlass,
      backButton: backButton ?? this.backButton,
      ignoreContextSignals: ignoreContextSignals ?? this.ignoreContextSignals,
      child: child ?? this.child,
    );