copyWith method

SunnyTextTheme copyWith({
  1. double? fontScale,
  2. TextStyle? body1Normal,
  3. TextStyle? body1Medium,
  4. TextStyle? body1Bold,
  5. TextStyle? body1Light,
  6. TextStyle? body2Normal,
  7. TextStyle? body2Medium,
  8. TextStyle? body2Bold,
  9. TextStyle? body2Light,
  10. TextStyle? header4,
  11. TextStyle? header3,
  12. TextStyle? header2,
  13. TextStyle? header1,
  14. TextStyle? body3Light,
  15. TextStyle? body3Link,
  16. TextStyle? input1,
  17. TextStyle? input2,
  18. TextStyle? hero,
  19. TextStyle? heroBold,
  20. TextStyle? heroMedium,
  21. TextStyle? input0,
  22. TextStyle? placeholder0,
})

Implementation

SunnyTextTheme copyWith({
  double? fontScale,
  TextStyle? body1Normal,
  TextStyle? body1Medium,
  TextStyle? body1Bold,
  TextStyle? body1Light,
  TextStyle? body2Normal,
  TextStyle? body2Medium,
  TextStyle? body2Bold,
  TextStyle? body2Light,
  TextStyle? header4,
  TextStyle? header3,
  TextStyle? header2,
  TextStyle? header1,
  TextStyle? body3Light,
  TextStyle? body3Link,
  TextStyle? input1,
  TextStyle? input2,
  TextStyle? hero,
  TextStyle? heroBold,
  TextStyle? heroMedium,
  TextStyle? input0,
  TextStyle? placeholder0,
}) {
  return new SunnyTextTheme._(
    fontScale: fontScale ?? this.fontScale,
    body1Normal: body1Normal ?? this.body1Normal,
    body1Medium: body1Medium ?? this.body1Medium,
    body1Bold: body1Bold ?? this.body1Bold,
    body1Light: body1Light ?? this.body1Light,
    body2Normal: body2Normal ?? this.body2Normal,
    body2Medium: body2Medium ?? this.body2Medium,
    body2Bold: body2Bold ?? this.body2Bold,
    body2Light: body2Light ?? this.body2Light,
    header4: header4 ?? this.header4,
    header3: header3 ?? this.header3,
    header2: header2 ?? this.header2,
    header1: header1 ?? this.header1,
    body3Light: body3Light ?? this.body3Light,
    body3Link: body3Link ?? this.body3Link,
    input1: input1 ?? this.input1,
    input2: input2 ?? this.input2,
    hero: hero ?? this.hero,
    heroBold: heroBold ?? this.heroBold,
    heroMedium: heroMedium ?? this.heroMedium,
    input0: input0 ?? this.input0,
    placeholder0: placeholder0 ?? this.placeholder0,
  );
}