ControlModel class

The foundational class for business logic models in the control framework.

It establishes a common lifecycle with init, mount, and dispose methods. It also includes DisposeHandler to manage how dispose is handled.

By default, init and dispose can be called multiple times. For more specific behaviors, see BaseModel and BaseControl.

Implemented types
Mixed-in types
Implementers
Available extensions

Constructors

ControlModel()

Properties

hashCode int
The hash code for this object.
no setterinherited
preferSoftDispose bool
requestDispose will execute softDispose. Useful for items in list and objects stored in ControlFactory. Final dispose must be handled manually.
getter/setter pairinherited
preventDispose bool
requestDispose do nothing if set. Final dispose must be handled manually.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases resources used by the object.
override
disposeWith(DisposeObserver observer) → void

Available on Disposable, provided by the DisposableExt extension

Register for dispose with given observer.
init(Map args) → void
Initializes the object with a map of arguments.
override
mount(Object? object) → void
A lifecycle method for attaching external objects, such as notifiers or handlers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestDispose([Object? sender]) → void
Executes a disposal action based on the handler's configuration.
inherited
softDispose() → void
A method for partial disposal, like canceling subscriptions, without fully invalidating the object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited