copyWith method
Widget
copyWith(
- BuildContext context, {
- FontWeight? fontWeight,
- double? fontSize,
- List<
Shadow> ? shadows, - double? fontLineHeight,
- 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,
),
);
}