CodeBlockComponentBuilder constructor
CodeBlockComponentBuilder({
- BlockComponentConfiguration configuration = const BlockComponentConfiguration(),
- EdgeInsets padding = const EdgeInsets.only(top: 20, left: 20, right: 20, bottom: 34),
- CodeBlockStyle styleBuilder()?,
- CodeBlockActions actions = const CodeBlockActions(),
- Widget actionWrapperBuilder(
- Node node,
- EditorState editorState,
- Widget child
- CodeBlockLanguagePickerBuilder? languagePickerBuilder,
- CodeBlockCopyBuilder? copyButtonBuilder,
- CodeBlockLocalizations localizations = const CodeBlockLocalizations(),
- 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,
});