copy method

PreConfig copy({
  1. EdgeInsetsGeometry? padding,
  2. Decoration? decoration,
  3. EdgeInsetsGeometry? margin,
  4. TextStyle? textStyle,
  5. TextStyle? styleNotMatched,
  6. CodeWrapper? wrapper,
  7. CodeContentWrapper? contentWrapper,
  8. CodeBuilder? builder,
  9. Map<String, TextStyle>? theme,
  10. String? language,
  11. RichTextBuilder? richTextBuilder,
  12. bool? wrapCode,
})

copy by other params

Implementation

PreConfig copy({
  EdgeInsetsGeometry? padding,
  Decoration? decoration,
  EdgeInsetsGeometry? margin,
  TextStyle? textStyle,
  TextStyle? styleNotMatched,
  CodeWrapper? wrapper,
  CodeContentWrapper? contentWrapper,
  CodeBuilder? builder,
  Map<String, TextStyle>? theme,
  String? language,
  RichTextBuilder? richTextBuilder,
  bool? wrapCode,
}) {
  return PreConfig(
    padding: padding ?? this.padding,
    decoration: decoration ?? this.decoration,
    margin: margin ?? this.margin,
    textStyle: textStyle ?? this.textStyle,
    styleNotMatched: styleNotMatched ?? this.styleNotMatched,
    wrapper: wrapper ?? this.wrapper,
    contentWrapper: contentWrapper ?? this.contentWrapper,
    builder: builder ?? this.builder,
    theme: theme ?? this.theme,
    language: language ?? this.language,
    richTextBuilder: richTextBuilder ?? this.richTextBuilder,
    wrapCode: wrapCode ?? this.wrapCode,
  );
}