getCycle function

int getCycle()

Returns the current dependency-tracking generation.

The reactive system bumps this counter when recomputing nodes so dependency link versions can distinguish fresh reads from stale ones.

Implementation

int getCycle() => cycle;