NiceCodeBlock constructor

const NiceCodeBlock({
  1. Key? key,
  2. required String code,
  3. String? language,
  4. bool showLineNumbers = true,
  5. bool showCopyButton = true,
  6. bool wrapLines = false,
  7. int? startLine,
  8. Set<int>? highlightLines,
  9. TextStyle? textStyle,
  10. VoidCallback? onCopy,
})

Implementation

const NiceCodeBlock({
  super.key,
  required this.code,
  this.language,
  this.showLineNumbers = true,
  this.showCopyButton = true,
  this.wrapLines = false,
  this.startLine,
  this.highlightLines,
  this.textStyle,
  this.onCopy,
});