copyWith method

AnimatedDialogTheme copyWith({
  1. EdgeInsets? contentPadding,
  2. EdgeInsets? actionsPadding,
  3. Size? contentSize,
  4. TextStyle? contentTextStyle,
  5. TextAlign? contentTextAlign,
  6. TextStyle? actionTextStyle,
  7. VoidCallback? onPressed,
  8. BoxConstraints? contentBoxConstraints,
  9. ShapeBorder? shape,
  10. double? elevation,
  11. Color? backgroundColor,
  12. Duration? animationDuration,
  13. LanguageDialogTheme? languageDialogTheme,
  14. TextStyle? titleStyle,
})

Creates a copy animated dialog theme with the given parameters.

Implementation

AnimatedDialogTheme copyWith({
  EdgeInsets? contentPadding,
  EdgeInsets? actionsPadding,
  Size? contentSize,
  TextStyle? contentTextStyle,
  TextAlign? contentTextAlign,
  TextStyle? actionTextStyle,
  VoidCallback? onPressed,
  BoxConstraints? contentBoxConstraints,
  ShapeBorder? shape,
  double? elevation,
  Color? backgroundColor,
  Duration? animationDuration,
  LanguageDialogTheme? languageDialogTheme,
  TextStyle? titleStyle,
}) =>
    AnimatedDialogTheme(
      actionTextStyle: actionTextStyle ?? this.actionTextStyle,
      actionsPadding: actionsPadding ?? this.actionsPadding,
      animationDuration: animationDuration ?? this.animationDuration,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      contentBoxConstraints:
          contentBoxConstraints ?? this.contentBoxConstraints,
      contentPadding: contentPadding ?? this.contentPadding,
      contentSize: contentSize ?? this.contentSize,
      contentTextAlign: contentTextAlign ?? this.contentTextAlign,
      contentTextStyle: contentTextStyle ?? this.contentTextStyle,
      elevation: elevation ?? this.elevation,
      languageDialogTheme: languageDialogTheme ?? this.languageDialogTheme,
      onPressed: onPressed ?? this.onPressed,
      shape: shape ?? this.shape,
      titleStyle: titleStyle ?? this.titleStyle,
    );