copyWith method

LatexConfig copyWith({
  1. double? fontSize,
  2. LatexTheme? theme,
  3. LineBreakingConfig? lineBreaking,
  4. HighlightConfig? highlight,
  5. bool? accessibilityEnabled,
  6. void onNodeClick(
    1. int startOffset,
    2. int endOffset,
    3. String latex
    )?,
  7. void onHyperlinkClick(
    1. String url
    )?,
  8. bool? enableLayoutCache,
})

Implementation

LatexConfig copyWith({
  double? fontSize,
  LatexTheme? theme,
  LineBreakingConfig? lineBreaking,
  HighlightConfig? highlight,
  bool? accessibilityEnabled,
  void Function(int startOffset, int endOffset, String latex)? onNodeClick,
  void Function(String url)? onHyperlinkClick,
  bool? enableLayoutCache,
}) {
  return LatexConfig(
    fontSize: fontSize ?? this.fontSize,
    theme: theme ?? this.theme,
    lineBreaking: lineBreaking ?? this.lineBreaking,
    highlight: highlight ?? this.highlight,
    accessibilityEnabled: accessibilityEnabled ?? this.accessibilityEnabled,
    onNodeClick: onNodeClick ?? this.onNodeClick,
    onHyperlinkClick: onHyperlinkClick ?? this.onHyperlinkClick,
    enableLayoutCache: enableLayoutCache ?? this.enableLayoutCache,
  );
}