copyWith method

  1. @useResult
FAvatarStyle copyWith({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. TextStyle? textStyle,
  4. Duration? fadeInDuration,
})
inherited

Returns a copy of this FAvatarStyle 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
FAvatarStyle copyWith({
  Color? backgroundColor,
  Color? foregroundColor,
  TextStyle? textStyle,
  Duration? fadeInDuration,
}) => FAvatarStyle(
  backgroundColor: backgroundColor ?? this.backgroundColor,
  foregroundColor: foregroundColor ?? this.foregroundColor,
  textStyle: textStyle ?? this.textStyle,
  fadeInDuration: fadeInDuration ?? this.fadeInDuration,
);