Divider class
A content item that renders a horizontal dividing line.
Features:
- Customizable thickness
- Configurable padding/indent
- Can be used in portable text blocks
- Supports theme-based styling
Example:
final divider = Divider(
thickness: 2.0,
indent: 16.0,
);
The divider can be used:
- Between content sections
- Inside portable text blocks
- As a visual separator in layouts
- Inheritance
-
- Object
- ContentItem
- Divider
- Annotations
-
- @JsonSerializable()
Constructors
-
Divider.new({double? thickness = 1, double? indent = 8, LayoutConfiguration<
ContentItem> ? layout, List<ContentModifierConfiguration> ? modifiers}) -
Divider.fromJson(Map<
String, dynamic> json) -
factory
Properties
- blockType → String
-
A unique string-name for the block type.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- indent → double?
-
final
-
layout
→ LayoutConfiguration<
ContentItem> ? -
The layout configuration for the content item.
finalinherited
-
modifiers
→ List<
ContentModifierConfiguration> ? -
finalinherited
- parent ↔ ContentItem?
-
The parent content item of this content item. This is used internally by the content system.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaType → String
-
The schema type of the content item.
finalinherited
- thickness → double?
-
final
Methods
-
getLayout(
) → LayoutConfiguration< ContentItem> ? -
Gets the layout to use for the
ContentItem
. By default its thelayout
itself. However this acts as an extension point for customContentItem
s that may have a different strategy for applying layouts.inherited -
getModifiers(
) → List< ContentModifierConfiguration> ? -
Gets the modifiers to use for the
ContentItem
. By default its themodifiers
itself. However this acts as an extension point for customContentItem
s that may have a different strategy for applying modifiers.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setParent(
Iterable< ContentItem?> children) → void -
Sets the parent content item for the given list of children.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
contentBuilder
→ ContentBuilder<
Divider> -
final
-
typeDescriptor
→ TypeDescriptor<
Divider> -
final
Constants
- schemaName → const String