BlockNoteInlineContent constructor

const BlockNoteInlineContent({
  1. required BlockNoteInlineContentType type,
  2. required String text,
  3. Map<String, dynamic>? styles,
  4. String? href,
  5. String? mentionId,
})

Creates a new inline content instance.

Implementation

const factory BlockNoteInlineContent({
  /// The type of inline content.
  required BlockNoteInlineContentType type,

  /// The text content.
  required String text,

  /// Optional text styles (bold, italic, underline, textColor, backgroundColor, etc.).
  /// Can contain boolean values (bold, italic, underline, strike) and string values (textColor, backgroundColor).
  Map<String, dynamic>? styles,

  /// Optional href for link content.
  String? href,

  /// Optional mention ID for mention content.
  String? mentionId,
}) = _BlockNoteInlineContent;