copyWith method
TextStyle
copyWith({
- double? fontSize,
- Color? color,
- FontStyle? fontStyle,
- FontWeight? fontWeight,
- double? letterSpacing,
Implementation
TextStyle copyWith({
double? fontSize,
Color? color,
flutter.FontStyle? fontStyle,
flutter.FontWeight? fontWeight,
double? letterSpacing,
}) {
return TextStyle(
type: type,
color: color ?? this.color,
fontSize: fontSize ?? this.fontSize,
fontStyle: fontStyle ?? this.fontStyle,
fontWeight: fontWeight ?? this.fontWeight,
letterSpacing: letterSpacing ?? this.letterSpacing,
);
}