copyWith method

TextStyleConfiguration copyWith({
  1. TextStyle? text,
  2. TextStyle? bold,
  3. TextStyle? italic,
  4. TextStyle? underline,
  5. TextStyle? strikethrough,
  6. TextStyle? href,
  7. TextStyle? code,
  8. TextStyle? autoComplete,
  9. bool? applyHeightToFirstAscent,
  10. 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,
  );
}