copyWith method

Emblem copyWith({
  1. SvgWrapper? shape,
  2. SvgWrapper? pattern,
  3. List<EmblemIcon>? icons,
  4. HslColor? primaryColor,
  5. HslColor? secondaryColor,
  6. HslColor? iconsColor,
  7. EmblemType? type,
})

Implementation

Emblem copyWith({
  SvgWrapper? shape,
  SvgWrapper? pattern,
  List<EmblemIcon>? icons,
  HslColor? primaryColor,
  HslColor? secondaryColor,
  HslColor? iconsColor,
  EmblemType? type,
}) {
  return Emblem(
    shape: shape ?? this.shape,
    pattern: pattern ?? this.pattern,
    icons: icons ?? this.icons,
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    iconsColor: iconsColor ?? this.iconsColor,
    type: type ?? this.type,
  );
}