copyWith method
- @useResult
- BoxDecoration? decoration,
- EdgeInsetsGeometry? padding,
- IconThemeData? iconStyle,
- TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
Returns a copy of this FAlertStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FAlertStyle.decoration - The decoration.
- FAlertStyle.padding - The padding.
- FAlertStyle.iconStyle - The icon's style.
- FAlertStyle.titleTextStyle - The title's TextStyle.
- FAlertStyle.subtitleTextStyle - The subtitle's TextStyle.
Implementation
@useResult
FAlertStyle copyWith({
BoxDecoration? decoration,
EdgeInsetsGeometry? padding,
IconThemeData? iconStyle,
TextStyle? titleTextStyle,
TextStyle? subtitleTextStyle,
}) => FAlertStyle(
decoration: decoration ?? this.decoration,
padding: padding ?? this.padding,
iconStyle: iconStyle ?? this.iconStyle,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
);