copyWith method
TitleMedium
copyWith({
- String? text,
- Color? color,
- TextAlign? textAlign,
- bool? softWrap,
- int? maxLines,
- TextOverflow? overflow,
- double? fontSize,
- TextDecoration? decoration,
- FontWeight? fontWeight,
Implementation
@override
TitleMedium copyWith({
String? text,
Color? color,
TextAlign? textAlign,
bool? softWrap,
int? maxLines,
TextOverflow? overflow,
double? fontSize,
TextDecoration? decoration,
FontWeight? fontWeight,
}) {
return TitleMedium._(
text ?? data!,
key: key,
textStyle: textStyle,
textAlign: textAlign ?? this.textAlign,
softWrap: softWrap ?? this.softWrap,
maxLines: maxLines ?? this.maxLines,
overflow: overflow ?? this.overflow,
color: color ?? _color,
decoration: decoration ?? _decoration,
fontWeight: fontWeight ?? _fontWeight,
fontSize: fontSize ?? _fontSize,
);
}