class Initializer
A class that handles the initialization and configuration of views, as part of a view builder.
class Initializer<TView extends View>;
Description
The Initializer class provides methods to configure view properties, bindings, event handlers, and initialization callbacks. It provides the implementation for fluent configuration methods on ViewBuilder interfaces, for many types of built-in view builders as well as widget classes.
Constructor
new ViewBuilder.Initializer()
Creates a new initializer for the specified view class.
Instance members
ViewClass readonly
The view class constructor that will be used to create instances.set()
Sets a property value or binding on each view instance after it is created.initialize()
Registers a callback to be called during view initialization.finalize()
Registers a callback to be called after view initialization is complete.update()
Registers an update handler for a value or binding.observeFormState()
Registers a two-way binding between a view property and a bound form state field.on()
Adds an event listener for the specified event name.build()
Creates and initializes a new view instance.
Related
interface ViewBuilder
An interface for objects that build pre-configured view instances.
