copyWith method

FlyFontWeightToken copyWith({
  1. FontWeight? thin,
  2. FontWeight? extralight,
  3. FontWeight? light,
  4. FontWeight? normal,
  5. FontWeight? medium,
  6. FontWeight? semibold,
  7. FontWeight? bold,
  8. FontWeight? extrabold,
  9. FontWeight? black,
  10. Map<String, FontWeight>? extras,
})

Create a copy with updated values

Implementation

FlyFontWeightToken copyWith({
  FontWeight? thin,
  FontWeight? extralight,
  FontWeight? light,
  FontWeight? normal,
  FontWeight? medium,
  FontWeight? semibold,
  FontWeight? bold,
  FontWeight? extrabold,
  FontWeight? black,
  Map<String, FontWeight>? extras,
}) {
  return FlyFontWeightToken(
    thin: thin ?? this.thin,
    extralight: extralight ?? this.extralight,
    light: light ?? this.light,
    normal: normal ?? this.normal,
    medium: medium ?? this.medium,
    semibold: semibold ?? this.semibold,
    bold: bold ?? this.bold,
    extrabold: extrabold ?? this.extrabold,
    black: black ?? this.black,
    extras: extras ?? this.extras,
  );
}