Text.code constructor

const Text.code(
  1. String data, {
  2. TextColor? color = TextColor.accent,
  3. TextAlign? textAlign,
  4. TextStyle? style,
  5. ArcaneStyleData? cssStyle,
  6. bool? softWrap,
  7. Key? key,
})

Implementation

const Text.code(
  this.data, {
  this.color = TextColor.accent,
  this.textAlign,
  this.style,
  this.cssStyle,
  this.softWrap,
  super.key,
}) : size = FontSize.sm,
     weight = null,
     lineHeight = null,
     letterSpacing = null,
     colorCustom = null,
     decoration = null,
     transform = null,
     family = FontFamily.mono,
     fontStyle = null,
     overflow = null,
     whiteSpace = null,
     maxLines = null,
     selectable = true,
     element = 'code';