copyWith method
TextStyleConfiguration
copyWith(
{ - TextStyle? text,
- TextStyle? bold,
- TextStyle? italic,
- TextStyle? underline,
- TextStyle? strikethrough,
- TextStyle? href,
- TextStyle? code,
- TextStyle? autoComplete,
- bool? applyHeightToFirstAscent,
- bool? applyHeightToLastDescent,
})
Implementation
TextStyleConfiguration copyWith({
TextStyle? text,
TextStyle? bold,
TextStyle? italic,
TextStyle? underline,
TextStyle? strikethrough,
TextStyle? href,
TextStyle? code,
TextStyle? autoComplete,
bool? applyHeightToFirstAscent,
bool? applyHeightToLastDescent,
}) {
return TextStyleConfiguration(
text: text ?? this.text,
bold: bold ?? this.bold,
italic: italic ?? this.italic,
underline: underline ?? this.underline,
strikethrough: strikethrough ?? this.strikethrough,
href: href ?? this.href,
code: code ?? this.code,
autoComplete: autoComplete ?? this.autoComplete,
applyHeightToFirstAscent:
applyHeightToFirstAscent ?? this.applyHeightToFirstAscent,
applyHeightToLastDescent:
applyHeightToLastDescent ?? this.applyHeightToLastDescent,
);
}