copyWith method

PdfActionBarTheme copyWith({
  1. Color? backgroundColor,
  2. Color? iconColor,
  3. double? height,
  4. TextStyle? textStyle,
  5. double? elevation,
  6. double? actionSpacing,
  7. WrapAlignment? alignment,
  8. WrapAlignment? runAlignment,
  9. WrapCrossAlignment? crossAxisAlignment,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

PdfActionBarTheme copyWith({
  Color? backgroundColor,
  Color? iconColor,
  double? height,
  TextStyle? textStyle,
  double? elevation,
  double? actionSpacing,
  WrapAlignment? alignment,
  WrapAlignment? runAlignment,
  WrapCrossAlignment? crossAxisAlignment,
}) {
  return PdfActionBarTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    iconColor: iconColor ?? this.iconColor,
    height: height ?? this.height,
    textStyle: textStyle ?? this.textStyle,
    elevation: elevation ?? this.elevation,
    actionSpacing: actionSpacing ?? this.actionSpacing,
    alignment: alignment ?? this.alignment,
    runAlignment: runAlignment ?? this.runAlignment,
    crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
  );
}