CodeBlockComponentBuilder class

Constructors

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})

Properties

actionBuilder ↔ BlockActionBuilder
getter/setter pairinherited
actions CodeBlockActions
final
actionWrapperBuilder → (Widget Function(Node node, EditorState editorState, Widget child)?)
final
configuration ↔ BlockComponentConfiguration
getter/setter pairinherited
copyButtonBuilder CodeBlockCopyBuilder?
final
hashCode int
The hash code for this object.
no setterinherited
languagePickerBuilder CodeBlockLanguagePickerBuilder?
final
localizations CodeBlockLocalizations
final
padding EdgeInsets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showActions bool Function(Node)
getter/setter pairinherited
showLineNumbers bool
final
styleBuilder → (CodeBlockStyle Function()?)
final

Methods

build(BlockComponentContext blockComponentContext) → BlockComponentWidget
end(Node node) → Position
the end position of the block component.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(Node node) → Position
the start position of the block component.
inherited
toString() String
A string representation of this object.
inherited
validate(Node node) bool
validate the node.

Operators

operator ==(Object other) bool
The equality operator.
inherited