runWithContext<T> static method
Executes fn within a specific listener context.
Used internally to attribute subscriptions to specific widgets or controllers.
Returns the value returned by fn.
Throws any exception thrown by fn.
Implementation
static T runWithContext<T>(LxListenerContext context, T Function() fn) {
return Lx.runWithContext(context, fn);
}