copyWith method

  1. @useResult
FAvatarStyle copyWith({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. TextStyleDelta? textStyle,
  4. Widget fallbackIcon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  5. Duration? fadeInDuration,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FAvatarStyle copyWith({
  Color? backgroundColor,
  Color? foregroundColor,
  TextStyleDelta? textStyle,
  Widget Function(BuildContext, {String? semanticsLabel})? fallbackIcon,
  Duration? fadeInDuration,
}) => .new(
  backgroundColor: backgroundColor ?? this.backgroundColor,
  foregroundColor: foregroundColor ?? this.foregroundColor,
  textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
  fallbackIcon: fallbackIcon ?? this.fallbackIcon,
  fadeInDuration: fadeInDuration ?? this.fadeInDuration,
);