copyWith method
- @useResult
- TextStyleDelta? titleTextStyle,
- TextStyleDelta? bodyTextStyle,
- EdgeInsetsGeometryDelta? padding,
- EdgeInsetsGeometryDelta? titlePadding,
- EdgeInsetsGeometryDelta? bodyPadding,
- double? imageSpacing,
- double? titleSpacing,
- double? contentSpacing,
- double? actionSpacing,
- bool? expandActions,
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.titlePadding - The padding surrounding the title.
- FDialogContentStyle.bodyPadding - The padding surrounding the body.
- FDialogContentStyle.imageSpacing - The spacing between the image and the title/body.
- FDialogContentStyle.titleSpacing - The spacing between the title and the body.
- FDialogContentStyle.contentSpacing - The spacing between the content (title/body) and the actions.
- FDialogContentStyle.actionSpacing - The space between actions.
- FDialogContentStyle.expandActions - Whether each action expands to fill the available width.
Implementation
@useResult
FDialogContentStyle copyWith({
TextStyleDelta? titleTextStyle,
TextStyleDelta? bodyTextStyle,
EdgeInsetsGeometryDelta? padding,
EdgeInsetsGeometryDelta? titlePadding,
EdgeInsetsGeometryDelta? bodyPadding,
double? imageSpacing,
double? titleSpacing,
double? contentSpacing,
double? actionSpacing,
bool? expandActions,
}) => .new(
titleTextStyle: titleTextStyle?.call(this.titleTextStyle) ?? this.titleTextStyle,
bodyTextStyle: bodyTextStyle?.call(this.bodyTextStyle) ?? this.bodyTextStyle,
padding: padding?.call(this.padding) ?? this.padding,
titlePadding: titlePadding?.call(this.titlePadding) ?? this.titlePadding,
bodyPadding: bodyPadding?.call(this.bodyPadding) ?? this.bodyPadding,
imageSpacing: imageSpacing ?? this.imageSpacing,
titleSpacing: titleSpacing ?? this.titleSpacing,
contentSpacing: contentSpacing ?? this.contentSpacing,
actionSpacing: actionSpacing ?? this.actionSpacing,
expandActions: expandActions ?? this.expandActions,
);