CodeBlockStyle constructor

const CodeBlockStyle({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. double? borderWidth,
  4. Radius? borderRadius,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? headerPadding,
  7. String? fontFamily,
  8. String? fontFamilyPackage,
  9. double? fontSize,
  10. Color? textColor,
  11. bool? showLanguageLabel,
  12. TextStyle? languageStyle,
  13. bool? showCopyButton,
  14. String? copyLabel,
  15. String? copiedLabel,
})

Creates a CodeBlockStyle. Null fields defer to the theme, then to the default.

Implementation

const CodeBlockStyle({
  this.backgroundColor,
  this.borderColor,
  this.borderWidth,
  this.borderRadius,
  this.padding,
  this.headerPadding,
  this.fontFamily,
  this.fontFamilyPackage,
  this.fontSize,
  this.textColor,
  this.showLanguageLabel,
  this.languageStyle,
  this.showCopyButton,
  this.copyLabel,
  this.copiedLabel,
});