state<T> function

WhalePod<T> state<T>(
  1. T initialValue
)

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);