PrismCodeView constructor

const PrismCodeView({
  1. Key? key,
  2. required String code,
  3. PrismLanguage language = PrismLanguage.other,
  4. LanguageTokenizer? tokenizer,
  5. PrismCodeViewStyle? style,
  6. bool? showLineNumbers,
  7. bool? enableCopy,
  8. bool? wrap,
  9. double? maxHeight,
})

Creates a code viewer.

Implementation

const PrismCodeView({
  super.key,
  required this.code,
  this.language = PrismLanguage.other,
  this.tokenizer,
  this.style,
  this.showLineNumbers,
  this.enableCopy,
  this.wrap,
  this.maxHeight,
});