uuid function

Returns a generator that produces deterministic pseudo-ids with a monotonically increasing counter.

Each call returns 'dummy_' followed by a zero-padded 8-digit index. Each uuid() invocation creates an independent counter sequence starting at zero.

Implementation

TValueGenerator uuid() {
  var counter = 0;
  return () => 'dummy_${(counter++).toString().padLeft(8, '0')}';
}