textStyleFrom function

TextStyle textStyleFrom(
  1. TextStyle? style,
  2. {FontWeight? fontWeight,
  3. String? fontFamily,
  4. FontStyle? fontStyle,
  5. double? fontSize,
  6. Color? color,
  7. double? letterSpacing,
  8. double? height}
)

Implementation

TextStyle textStyleFrom(
  TextStyle? style, {
  FontWeight? fontWeight,
  String? fontFamily,
  FontStyle? fontStyle,
  double? fontSize,
  Color? color,
  double? letterSpacing,
  double? height,
}) {
  return TextStyle(
    fontStyle: fontStyle ?? style!.fontStyle,
    fontWeight: fontWeight ?? style!.fontWeight,
    fontFamily: fontFamily ?? style!.fontFamily,
    color: color ?? style!.color,
    fontSize: fontSize ?? style!.fontSize,
    letterSpacing: letterSpacing ?? style!.letterSpacing,
    height: height ?? style!.height,
  );
}