copyWith method

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

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.

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