CalloutMeta class

Metadata for Markdown callout elements.

Represents callouts (NOTE, WARNING, TIP, IMPORTANT, CAUTION) that appear before or after a key's content in Markdown documents.

Constructors

CalloutMeta({required String type, required String content, required String position})
Creates a CalloutMeta instance.
const
CalloutMeta.fromJson(Map<String, dynamic> json)
Creates from JSON map.
factory

Properties

content String
The content of the callout.
final
hashCode int
The hash code for this object.
no setteroverride
position String
The position of the callout: 'before' or 'after'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of callout: 'note', 'warning', 'tip', 'important', 'caution'.
final

Methods

copyWith({String? type, String? content, String? position}) CalloutMeta
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