CodeField constructor

const CodeField({
  1. Key? key,
  2. required String name,
  3. required String codes,
  4. CodeBlockStyle style = const CodeBlockStyle(),
  5. void onCopy(
    1. String code
    )?,
  6. bool highlightCode = true,
  7. bool scalesItsOwnText = false,
})

Implementation

const CodeField({
  super.key,
  required this.name,
  required this.codes,
  this.style = const CodeBlockStyle(),
  this.onCopy,
  this.highlightCode = true,
  this.scalesItsOwnText = false,
});