copyWith method
- @useResult
- TextStyle? titleTextStyle,
- TextStyle? bodyTextStyle,
- EdgeInsetsGeometry? padding,
- double? actionSpacing,
Returns a copy of this FDialogContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FDialogContentStyle.titleTextStyle - The title's TextStyle.
- FDialogContentStyle.bodyTextStyle - The body's TextStyle.
- FDialogContentStyle.padding - The padding surrounding the content.
- FDialogContentStyle.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,
);