state<T> function
The simplest way to declare state. Alias for creating a WhalePod.
Example: final counter = state(0);
Implementation
WhalePod<T> state<T>(T initialValue) => WhalePod<T>(initialValue);
The simplest way to declare state. Alias for creating a WhalePod.
Example: final counter = state(0);
WhalePod<T> state<T>(T initialValue) => WhalePod<T>(initialValue);