BuildOp class
A building operation to customize how a DOM element is rendered.
- Annotations
Constructors
-
BuildOp({bool? alwaysRenderBlock, String? debugLabel, DefaultStyles? defaultStyles, OnParsed? onParsed, OnRenderBlock? onRenderBlock, OnRenderInline? onRenderInline, OnRenderedBlock? onRenderedBlock, OnRenderedChildren? onRenderedChildren, OnVisitChild? onVisitChild, int priority = kPriorityDefault, @Deprecated('Use onVisitChild instead.') void onChild(BuildMetadata subTree)?, @Deprecated('Use onParsed instead.') void onTree(BuildMetadata meta, BuildTree tree)?, @Deprecated('Use onRenderInline instead.') void onTreeFlattening(BuildMetadata meta, BuildTree tree)?, @Deprecated('Use onRenderBlock instead.') Iterable<
Widget> ? onWidgets(BuildMetadata meta, Iterable<WidgetPlaceholder> widgets)?, @Deprecated('Use alwaysRenderBlock instead.') bool onWidgetsIsOptional = false}) -
Creates a build op.
factory
- BuildOp.inline({PlaceholderAlignment alignment = PlaceholderAlignment.baseline, TextBaseline baseline = TextBaseline.alphabetic, String? debugLabel, required OnRenderInlineBlock onRenderInlineBlock, int priority = kPriorityInlineBlockDefault})
-
Creates an inline build op.
factory
- BuildOp.v2({bool? alwaysRenderBlock, String? debugLabel, DefaultStyles? defaultStyles, OnParsed? onParsed, OnRenderBlock? onRenderBlock, OnRenderInline? onRenderInline, OnRenderedBlock? onRenderedBlock, OnRenderedChildren? onRenderedChildren, OnVisitChild? onVisitChild, int priority = kPriorityDefault})
-
Creates a second generation build op.
const
Properties
- alwaysRenderBlock → bool?
-
Controls whether the element must be rendered as a block.
final
- debugLabel → String?
-
A human-readable description of this op.
final
- defaultStyles → DefaultStyles?
-
The callback that should return default styling map.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onParsed → OnParsed?
-
The callback that will be called when child elements have been processed.
final
- onRenderBlock → OnRenderBlock?
-
The callback that will be called during widget build.
final
- onRenderedBlock → OnRenderedBlock?
-
The callback that will be called after widget has been built.
final
- onRenderedChildren → OnRenderedChildren?
-
/ The callback that will be called after children widgets has been built.
final
- onRenderInline → OnRenderInline?
-
The callback that will be called before flattening.
final
- onVisitChild → OnVisitChild?
-
The callback that will be called before processing a child element.
final
- priority → int
-
The execution priority, op with lower priority will run first.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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