BuildScope class final

A class that determines the scope of a BuildOwner.buildScope operation.

The BuildOwner.buildScope method rebuilds all dirty Elements who share the same Element.buildScope as its context argument, and skips those with a different Element.buildScope.

Elements by default have the same buildScope as their parents. Special Elements may override Element.buildScope to create an isolated build scope for its descendants. The LayoutBuilder widget, for example, establishes its own BuildScope such that no descendant Elements may rebuild prematurely until the incoming constraints are known.

Constructors

BuildScope({VoidCallback? scheduleRebuild})
Creates a BuildScope with an optional scheduleRebuild callback.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduleRebuild VoidCallback?
An optional VoidCallback that will be called when Elements in this BuildScope are marked as dirty for the first time.
final

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