copyWith method
FTextStyle
copyWith({
- FFill? fill,
- FFontSize? fontSize,
- String? fontFamily,
- FFontWeight? fontWeight,
- FTextDecoration? textDecoration,
- FTextAlign? textAlign,
- FFontStyle? fontStyle,
- FTextDirection? textDirection,
- String? textStyleModel,
- FGeneralTypeInput? letterSpacing,
- FGeneralTypeInput? lineSpacing,
Returns style (TextStyle) only
TextStyle(
color: Colors.black,
fontWeight: FontWeight.normal,
fontSize: 16,
fontFamily: '',
fontStyle: FontStyle.normal,
decoration: TextDecoration.none,
),
Implementation
FTextStyle copyWith({
FFill? fill,
FFontSize? fontSize,
String? fontFamily,
FFontWeight? fontWeight,
FTextDecoration? textDecoration,
FTextAlign? textAlign,
FFontStyle? fontStyle,
FTextDirection? textDirection,
String? textStyleModel,
FGeneralTypeInput? letterSpacing,
FGeneralTypeInput? lineSpacing,
}) {
return FTextStyle(
fill: fill ?? this.fill,
fontSize: fontSize ?? this.fontSize,
fontFamily: fontFamily ?? this.fontFamily,
fontWeight: fontWeight ?? this.fontWeight,
textDecoration: textDecoration ?? this.textDecoration,
textAlign: textAlign ?? this.textAlign,
fontStyle: fontStyle ?? this.fontStyle,
textDirection: textDirection ?? this.textDirection,
textStyleModel: textStyleModel ?? this.textStyleModel,
letterSpacing: letterSpacing ?? this.letterSpacing,
lineSpacing: lineSpacing ?? this.lineSpacing,
);
}