BuildOp class
A building operation to customize how a DOM element is rendered.
- Annotations
- @immutable
Constructors
-
BuildOp({Map<
String, String> defaultStyles(BuildMetadata meta), bool isBlockElement, void onChild(BuildMetadata childMeta ), Iterable< BuiltPiece> onPieces(BuildMetadata meta,Iterable< BuiltPiece> pieces), Iterable< Widget> onWidgets(BuildMetadata meta,Iterable< WidgetPlaceholder> widgets), int priority: 10} ) - Creates a build op.
Properties
-
defaultStyles
→ Map<
String, String> Function(BuildMetadata meta) -
The callback that should return default styling map. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isBlockElement → bool
-
Controls whether the element should be rendered with
CssBlock
. [...]final -
onChild
→ void Function(BuildMetadata childMeta
) -
The callback that will be called whenver a child element is found. [...]
final
-
onPieces
→ Iterable<
BuiltPiece> Function(BuildMetadata meta,Iterable< BuiltPiece> pieces) -
The callback that will be called when child elements have been processed.
final
-
onWidgets
→ Iterable<
Widget> Function(BuildMetadata meta,Iterable< WidgetPlaceholder> widgets) -
The callback that will be called when child elements have been built. [...]
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.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other ) → bool -
The equality operator. [...]
inherited