rawSelect<B> method

AtomWithParent<B, Parent> rawSelect<B>(
  1. B f(
    1. FutureValue<A> value
    )
)

Create a derived atom, that transforms an atoms value using the given function f.

Only rebuilds when the selected value changes.

Implementation

AtomWithParent<B, Parent> rawSelect<B>(
  B Function(FutureValue<A> value) f,
) =>
    AtomWithParent(parent, (get, parent) => f(get(this)));