SyntaxHighlighter constructor

const SyntaxHighlighter({
  1. Key? key,
  2. required String code,
  3. CodeLanguage language = CodeLanguage.generic,
  4. bool showLineNumbers = true,
  5. bool showCopyButton = true,
  6. double? maxHeight,
  7. TextStyle? style,
  8. Color? backgroundColor,
  9. BorderRadius? borderRadius,
})

Implementation

const SyntaxHighlighter({
  super.key,
  required this.code,
  this.language = CodeLanguage.generic,
  this.showLineNumbers = true,
  this.showCopyButton = true,
  this.maxHeight,
  this.style,
  this.backgroundColor,
  this.borderRadius,
});