lx property

LxAsyncComputed<T> get lx

Transforms this async function into a LxAsyncComputed value.

final userId = 1.lx;
final user = (() => fetchUser(userId.value)).lx;

Implementation

LxAsyncComputed<T> get lx => LxComputed.async<T>(this);