copyWith method

NomoAppBar copyWith({
  1. Widget? title,
  2. Widget? leading,
  3. Widget? trailling,
  4. double? spacing,
  5. Color? backgroundColor,
  6. BorderRadiusGeometry? borderRadius,
  7. PreferredSizeWidget? bottom,
  8. double? topInset,
  9. double? height,
  10. double? elevation,
})

Implementation

NomoAppBar copyWith({
  Widget? title,
  Widget? leading,
  Widget? trailling,
  double? spacing,
  Color? backgroundColor,
  BorderRadiusGeometry? borderRadius,
  PreferredSizeWidget? bottom,
  double? topInset,
  double? height,
  double? elevation,
}) {
  return NomoAppBar(
    title: title ?? this.title,
    leading: leading ?? this.leading,
    trailling: trailling ?? this.trailling,
    spacing: spacing ?? this.spacing,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    bottom: bottom ?? this.bottom,
    topInset: topInset ?? this.topInset,
    height: height ?? this.height,
    elevation: elevation ?? this.elevation,
  );
}