statePod<Value> function
Create a simple pod with mutable state.
final counter = statePod(0);
If you want to ensure the state is not automatically disposed when not in use, then call the Pod.keepAlive method.
final counter = statePod(0).keepAlive();
Implementation
WritablePod<Value, Value> statePod<Value>(Value initialValue) =>
StatePod(initialValue);