copyWith method

  1. @override
VAppBarStyle copyWith({
  1. Color? backgroundColor,
  2. Color? splashColor,
  3. Color? iconColor,
  4. double? elevation,
  5. double? bottomOpacity,
  6. double? borderRadius,
  7. TextStyle? titleTextStyle,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VAppBarStyle copyWith({
  Color? backgroundColor,
  Color? splashColor,
  Color? iconColor,
  double? elevation,
  double? bottomOpacity,
  double? borderRadius,
  TextStyle? titleTextStyle,
}) =>
    VAppBarStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      splashColor: splashColor ?? this.splashColor,
      iconColor: iconColor ?? this.iconColor,
      elevation: elevation ?? this.elevation,
      bottomOpacity: bottomOpacity ?? this.bottomOpacity,
      borderRadius: borderRadius ?? this.borderRadius,
      titleTextStyle: titleTextStyle ?? this.titleTextStyle,
    );