CodeBlockComponentWidget constructor

const CodeBlockComponentWidget({
  1. Key? key,
  2. required Node node,
  3. bool showActions = false,
  4. BlockComponentActionBuilder? actionBuilder,
  5. BlockComponentConfiguration configuration = const BlockComponentConfiguration(),
  6. EdgeInsets padding = const EdgeInsets.all(20),
  7. CodeBlockStyle? style,
  8. CodeBlockActions actions = const CodeBlockActions(),
  9. Widget actionWrapperBuilder(
    1. Node node,
    2. EditorState editorState,
    3. Widget child
    )?,
  10. CodeBlockLanguagePickerBuilder? languagePickerBuilder,
  11. CodeBlockCopyBuilder? copyButtonBuilder,
  12. CodeBlockLocalizations localizations = const CodeBlockLocalizations(),
  13. bool showLineNumbers = true,
})

Implementation

const CodeBlockComponentWidget({
  super.key,
  required super.node,
  super.showActions,
  super.actionBuilder,
  super.configuration = const BlockComponentConfiguration(),
  this.padding = const EdgeInsets.all(20),
  this.style,
  this.actions = const CodeBlockActions(),
  this.actionWrapperBuilder,
  this.languagePickerBuilder,
  this.copyButtonBuilder,
  this.localizations = const CodeBlockLocalizations(),
  this.showLineNumbers = true,
});