copyWith method

Widget copyWith(
  1. BuildContext context, {
  2. FontWeight? fontWeight,
  3. double? fontSize,
  4. List<Shadow>? shadows,
  5. double? fontLineHeight,
  6. double? letterSpacing,
})

Implementation

Widget copyWith(
  BuildContext context, {
  FontWeight? fontWeight,
  double? fontSize,
  List<Shadow>? shadows,
  double? fontLineHeight,
  double? letterSpacing,
}) {
  // ignore: unnecessary_null_comparison
  assert(context != null);
  return _getTextWidget(
    context,
    fontLineHeight: fontLineHeight,
    fontSize: fontSize,
    textStyle: _getStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      shadows: shadows,
      letterSpacing: letterSpacing,
    ),
  );
}