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