copyWith method
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,
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,
);
}