copyWith method

  1. @useResult
FAlertStyle copyWith({
  1. BoxDecoration? decoration,
  2. EdgeInsetsGeometry? padding,
  3. IconThemeData? iconStyle,
  4. TextStyle? titleTextStyle,
  5. TextStyle? subtitleTextStyle,
})

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

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

decoration

The decoration.

padding

The padding. Defaults to EdgeInsets.fromLTRB(16, 12, 16, 12).

iconStyle

The icon's style.

titleTextStyle

The title's TextStyle.

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,
);