reset method

void reset()

Resets the state to its initial value.

Implementation

void reset() => value = initialValue;