pod<Value> function

ReadPod<Value> pod<Value>(
  1. ReaderPod<Value> create
)

Create a read only pod that can interact with other pod's to create derived state.

final count = statePod(0);
final countTimesTwo = pod((ref) => ref.watch(count) * 2);

Implementation

ReadPod<Value> pod<Value>(ReaderPod<Value> create) => ReadPod(create);