copyWith method

FTextStyle copyWith({
  1. FFill? fill,
  2. FFontSize? fontSize,
  3. String? fontFamily,
  4. FFontWeight? fontWeight,
  5. FTextDecoration? textDecoration,
  6. FTextAlign? textAlign,
  7. FFontStyle? fontStyle,
  8. FTextDirection? textDirection,
  9. String? textStyleModel,
  10. FGeneralTypeInput? letterSpacing,
  11. 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,
  );
}