copyWith method

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

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

Implementation

@useResult
FAvatarStyle copyWith({
  Color? backgroundColor,
  Color? foregroundColor,
  Duration? fadeInDuration,
  TextStyle? text,
}) =>
    FAvatarStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      foregroundColor: foregroundColor ?? this.foregroundColor,
      fadeInDuration: fadeInDuration ?? this.fadeInDuration,
      text: text ?? this.text,
    );