copyWith method

  1. @useResult
FDialogContentStyle copyWith({
  1. TextStyle? titleTextStyle,
  2. TextStyle? bodyTextStyle,
  3. EdgeInsetsGeometry? padding,
  4. double? actionSpacing,
})

Returns a copy of this FDialogContentStyle with the given properties replaced.

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

titleTextStyle

The title's TextStyle.

bodyTextStyle

The body's TextStyle.

padding

The padding surrounding the content.

actionSpacing

The space between actions.

Implementation

@useResult
FDialogContentStyle copyWith({
  TextStyle? titleTextStyle,
  TextStyle? bodyTextStyle,
  EdgeInsetsGeometry? padding,
  double? actionSpacing,
}) => FDialogContentStyle(
  titleTextStyle: titleTextStyle ?? this.titleTextStyle,
  bodyTextStyle: bodyTextStyle ?? this.bodyTextStyle,
  padding: padding ?? this.padding,
  actionSpacing: actionSpacing ?? this.actionSpacing,
);