CodeBlockMeta class

Metadata for code block elements.

Represents code blocks (fenced or inline) that appear in Markdown documents, including language specification and optional filename.

Constructors

CodeBlockMeta({String? language, String? filename, bool isInline = false})
Creates a CodeBlockMeta instance.
const
CodeBlockMeta.fromJson(Map<String, dynamic> json)
Creates from JSON map.
factory

Properties

filename String?
An optional filename associated with the code block.
final
hashCode int
The hash code for this object.
no setteroverride
isInline bool
Whether this is an inline code block (as opposed to a fenced block).
final
language String?
The programming language of the code block.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? language, String? filename, bool? isInline}) CodeBlockMeta
Creates a copy with updated values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON map.
toString() String
A string representation of this object.
inherited

Operators

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