CodeBlockComponentWidget constructor
const
CodeBlockComponentWidget({
- Key? key,
- required Node node,
- bool showActions = false,
- BlockComponentActionBuilder? actionBuilder,
- BlockComponentConfiguration configuration = const BlockComponentConfiguration(),
- EdgeInsets padding = const EdgeInsets.all(20),
- CodeBlockStyle? style,
- CodeBlockActions actions = const CodeBlockActions(),
- Widget actionWrapperBuilder(
- Node node,
- EditorState editorState,
- Widget child
- CodeBlockLanguagePickerBuilder? languagePickerBuilder,
- CodeBlockCopyBuilder? copyButtonBuilder,
- CodeBlockLocalizations localizations = const CodeBlockLocalizations(),
- 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,
});