CodeBlock constructor

const CodeBlock({
  1. Key? key,
  2. required String code,
  3. String language = 'dart',
  4. bool showLineNumbers = true,
  5. bool showCopyButton = true,
  6. double fontSize = 12.0,
  7. double borderRadius = AppRadius.large,
  8. Color? headerBackground,
})

Implementation

const CodeBlock({
  super.key,
  required this.code,
  this.language = 'dart',
  this.showLineNumbers = true,
  this.showCopyButton = true,
  this.fontSize = 12.0,
  this.borderRadius = AppRadius.large,
  this.headerBackground,
});