CodeBlockComponentBuilder constructor

CodeBlockComponentBuilder({
  1. BlockComponentConfiguration configuration = const BlockComponentConfiguration(),
  2. EdgeInsets padding = const EdgeInsets.only(top: 20, left: 20, right: 20, bottom: 34),
  3. CodeBlockStyle styleBuilder()?,
  4. CodeBlockActions actions = const CodeBlockActions(),
  5. Widget actionWrapperBuilder(
    1. Node node,
    2. EditorState editorState,
    3. Widget child
    )?,
  6. CodeBlockLanguagePickerBuilder? languagePickerBuilder,
  7. CodeBlockCopyBuilder? copyButtonBuilder,
  8. CodeBlockLocalizations localizations = const CodeBlockLocalizations(),
  9. bool showLineNumbers = true,
})

Implementation

CodeBlockComponentBuilder({
  super.configuration,
  this.padding = const EdgeInsets.only(
    top: 20,
    left: 20,
    right: 20,
    bottom: 34,
  ),
  this.styleBuilder,
  this.actions = const CodeBlockActions(),
  this.actionWrapperBuilder,
  this.languagePickerBuilder,
  this.copyButtonBuilder,
  this.localizations = const CodeBlockLocalizations(),
  this.showLineNumbers = true,
});