BrTag class
Self-Closing Tags
Represents a line break HTML element (
)
- Inheritance
-
- Object
- Tag
- SelfClosingTag
- BrTag
Constructors
Properties
-
attributes
→ Map<
String, dynamic> ? -
Optional attributes for the HTML tag, stored as key-value pairs.
finalinherited
-
children
→ List<
Tag> ? -
Optional child tags that will be nested within this tag.
finalinherited
- content → String?
-
Optional text content that will be placed between the opening and closing tags.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelfClosing → bool
-
Always returns true since this is a self-closing tag.
no setterinherited
- maintainFormatting → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tagName → String
-
Must be implemented by subclasses.
no setteroverride
Methods
-
build(
{int indentLevel = 0}) → String -
Builds the HTML string representation of the tag with proper indentation.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited