CodeBlock class
A code block component that renders syntax-highlighted code.
- Implemented types
Constructors
-
CodeBlock.new({String defaultLanguage = 'dart', Map<
String, String> grammars = const {}, HighlighterTheme? theme})
Properties
- defaultLanguage → String
-
The default language for the code block.
final
-
grammars
→ Map<
String, String> -
The available grammars for the code block.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → HighlighterTheme?
-
The default theme for the code block.
final
Methods
-
create(
Node node, NodesBuilder builder) → Component? -
Creates a component for the given node, or returns null.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited