copyWith method

FeedbackThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? submitButtonColor,
  3. EdgeInsets? contentPadding,
  4. BorderRadius? sheetBorderRadius,
})

Returns a copy with the given fields replaced.

Implementation

FeedbackThemeData copyWith({
  Color? backgroundColor,
  Color? submitButtonColor,
  EdgeInsets? contentPadding,
  BorderRadius? sheetBorderRadius,
}) {
  return FeedbackThemeData(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    submitButtonColor: submitButtonColor ?? this.submitButtonColor,
    contentPadding: contentPadding ?? this.contentPadding,
    sheetBorderRadius: sheetBorderRadius ?? this.sheetBorderRadius,
  );
}