BlockNoteInlineContent class sealed

BlockNote block inline content.

Represents inline content within a block (text, links, mentions).

Annotations
  • @freezed

Constructors

BlockNoteInlineContent({required BlockNoteInlineContentType type, required String text, Map<String, dynamic>? styles, String? href, String? mentionId})
Creates a new inline content instance.
const
factory
BlockNoteInlineContent.fromJson(Map<String, dynamic> json)
Creates a BlockNoteInlineContent from a JSON map.
factory

Properties

copyWith → $BlockNoteInlineContentCopyWith<BlockNoteInlineContent>
Create a copy of BlockNoteInlineContent with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
href String?
Optional href for link content.
no setterinherited
mentionId String?
Optional mention ID for mention content.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styles Map<String, dynamic>?
Optional text styles (bold, italic, underline, textColor, backgroundColor, etc.). Can contain boolean values (bold, italic, underline, strike) and string values (textColor, backgroundColor).
no setterinherited
text String
The text content.
no setterinherited
type BlockNoteInlineContentType
The type of inline content.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BlockNoteInlineContent to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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