adapter property
T?
adapter
final
Optional per-view controller instance you own.
When supplied, this widget uses adapter as its controller — the
Instant view dispatches its lifecycle hooks and the typed Instant events
to it, and onControllerReady surfaces it. Ownership stays with the
caller: dispose it yourself (the view calls detachView() on teardown,
never dispose()).
If null, the controller is resolved via Nutrient.buildAdapter for
T: a fresh instance from a factory registered with
Nutrient.addAdapterClass, or — for a bare view — the platform's
default Instant controller. Controllers this view builds are owned and
disposed by the view.
On web the Instant view manages its own adapter, so this is ignored.
Implementation
final T? adapter;