copyWith method

  1. @override
VPanelStyle copyWith({
  1. Color? backgroundColor,
  2. Color? appBarBackgroundColor,
  3. double? borderRadius,
  4. TextStyle? titleTextStyle,
})
override

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

Implementation

@override
VPanelStyle copyWith({
  Color? backgroundColor,
  Color? appBarBackgroundColor,
  double? borderRadius,
  TextStyle? titleTextStyle,
}) =>
    VPanelStyle(
        backgroundColor: backgroundColor ?? this.backgroundColor,
        appBarBackgroundColor:
            appBarBackgroundColor ?? this.appBarBackgroundColor,
        titleTextStyle: titleTextStyle ?? this.titleTextStyle,
        borderRadius: borderRadius ?? this.borderRadius);