DocxText.code constructor

const DocxText.code(
  1. String content, {
  2. double? fontSize,
  3. String? shadingFill,
  4. DocxColor? color,
  5. String? themeFill,
  6. String? themeFillTint,
  7. String? themeFillShade,
  8. String? id,
})

Inline code text.

Implementation

const DocxText.code(this.content,
    {this.fontSize,
    this.shadingFill,
    this.color,
    this.themeFill,
    this.themeFillTint,
    this.themeFillShade,
    super.id})
    : fontWeight = DocxFontWeight.normal,
      fontStyle = DocxFontStyle.normal,
      decorations = const [],
      highlight = DocxHighlight.none,
      fontFamily = 'Courier New',
      fonts = null,
      characterSpacing = null,
      href = null,
      themeColor = null,
      themeTint = null,
      themeShade = null,
      isSuperscript = false,
      isSubscript = false,
      isAllCaps = false,
      isSmallCaps = false,
      isDoubleStrike = false,
      isOutline = false,
      isShadow = false,
      isEmboss = false,
      isImprint = false,
      textBorder = null;