CometChatCardCodeBlockElement class final

A code block element with optional language label and syntax styling.

Inheritance

Constructors

CometChatCardCodeBlockElement({required String id, required String content, String? language, dynamic backgroundColor, dynamic textColor, dynamic padding, double? borderRadius, double? fontSize, double? languageLabelFontSize, dynamic languageLabelColor})
const
CometChatCardCodeBlockElement.fromJson(Map<String, dynamic> json)
factory

Properties

backgroundColor → dynamic
Background fill color of the code block.
final
borderRadius double?
Corner radius of the code block.
final
content String
The source code content to display.
final
fontSize double?
Font size of the code text.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this element within the card.
finalinherited
language String?
Language identifier shown as a label (e.g. dart, json).
final
languageLabelColor → dynamic
Color of the language label.
final
languageLabelFontSize double?
Font size of the language label.
final
padding → dynamic
Padding around the code, as a number or per-edge map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor → dynamic
Color of the code text.
final
type String
The element type discriminator (e.g. text, image, row).
finalinherited

Methods

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

Operators

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