CodeBlock class
A code block component that renders syntax-highlighted code.
- Inheritance
-
- Object
- CustomComponent
- CodeBlock
Constructors
Properties
- codeTheme → HighlighterTheme?
-
The default theme for the code block.
final
- 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
→ ThemeExtension<
Object?> ? -
An optional theme extension for this component.
no setterinherited
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