Text.code constructor

const Text.code(
  1. String text, {
  2. TextColor? color = TextColor.accent,
  3. TextAlign? align,
  4. ArcaneStyleData? style,
  5. Key? key,
})

Implementation

const Text.code(
  this.text, {
  this.color = TextColor.accent,
  this.align,
  this.style,
  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';