copyWith method

Avataaar copyWith({
  1. Top? top,
  2. Clothes? clothes,
  3. Eyes? eyes,
  4. Eyebrow? eyebrow,
  5. Mouth? mouth,
  6. Skin? skin,
  7. Style? style,
  8. Color? backgroundColor,
})

Implementation

Avataaar copyWith({
  Top? top,
  Clothes? clothes,
  Eyes? eyes,
  Eyebrow? eyebrow,
  Mouth? mouth,
  Skin? skin,
  Style? style,
  Color? backgroundColor,
}) =>
    Avataaar(
      top: top ?? this.top,
      clothes: clothes ?? this.clothes,
      eyes: eyes ?? this.eyes,
      eyebrow: eyebrow ?? this.eyebrow,
      mouth: mouth ?? this.mouth,
      skin: skin ?? this.skin,
      style: style ?? this.style,
      backgroundColor: backgroundColor ?? this.backgroundColor,
    );