Padding class

Adds padding around a child.

Padding(padding: EdgeInsets.all(8), child: StyledText('Hi'));
Inheritance

Constructors

Padding({required EdgeInsets padding, required BloomNode child})
Creates a padded child.

Properties

aria → Map<String, Object?>?
Accessible attributes keyed without the aria- prefix.
finalinherited
attrs → Map<String, String>?
Arbitrary HTML attributes (id, href, placeholder, etc.).
finalinherited
children → List<BloomNode>
Child descriptors nested within this element.
finalinherited
classIf → Map<String, bool Function()>?
Conditional class inclusion mapping class names to boolean predicates.
finalinherited
className → String?
CSS class attribute applied to the element.
finalinherited
data → Map<String, String>?
Data attributes keyed without the data- prefix.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
hidden → bool?
Whether the element is hidden. true emits the boolean attribute.
finalinherited
id → String?
Element ID rendered as the id attribute.
finalinherited
on → Map<String, BloomEventHandler>?
Event handlers keyed by DOM event name (click, input, change...).
finalinherited
reactiveAttrs → Map<String, Object? Function()>?
Reactive attribute getters evaluated dynamically in place.
finalinherited
reactiveClass → String Function()?
Extra CSS classes, appended after className.
finalinherited
reactiveStyle → String Function()?
Extra inline CSS style string, appended after style with "; ".
finalinherited
role → String?
Accessibility role rendered as the role attribute.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → String?
Inline style — raw CSS string (e.g. "color: red; display: flex;").
finalinherited
tabIndex → int?
Keyboard tab order rendered as the tabindex attribute.
finalinherited
tag → String
Lowercase tag name, e.g. "div", "button", "custom-tag".
finalinherited
text → String?
Optional single text child sugar — equivalent to children: [Text(text)] when no explicit children are given.
finalinherited
title → String?
Advisory text rendered as the title attribute.
finalinherited

Methods

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