copyWith method
- @useResult
- TextStyleDelta? titleTextStyle,
- TextStyleDelta? bodyTextStyle,
- EdgeInsetsGeometry? padding,
- double? titleSpacing,
- double? bodySpacing,
- double? contentSpacing,
- double? actionSpacing,
Returns a copy of this FDialogContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FDialogContentStyle.titleTextStyle - The title's TextStyle.
- FDialogContentStyle.bodyTextStyle - The body's TextStyle.
- FDialogContentStyle.padding - The padding surrounding the content.
- FDialogContentStyle.titleSpacing - The spacing below the title.
- FDialogContentStyle.bodySpacing - The spacing below the body.
- FDialogContentStyle.contentSpacing - The spacing between the content (title/body) and the actions.
- FDialogContentStyle.actionSpacing - The space between actions.
Implementation
@useResult
FDialogContentStyle copyWith({
TextStyleDelta? titleTextStyle,
TextStyleDelta? bodyTextStyle,
EdgeInsetsGeometry? padding,
double? titleSpacing,
double? bodySpacing,
double? contentSpacing,
double? actionSpacing,
}) => .new(
titleTextStyle: titleTextStyle?.call(this.titleTextStyle) ?? this.titleTextStyle,
bodyTextStyle: bodyTextStyle?.call(this.bodyTextStyle) ?? this.bodyTextStyle,
padding: padding ?? this.padding,
titleSpacing: titleSpacing ?? this.titleSpacing,
bodySpacing: bodySpacing ?? this.bodySpacing,
contentSpacing: contentSpacing ?? this.contentSpacing,
actionSpacing: actionSpacing ?? this.actionSpacing,
);