idGenerator property

  1. @visibleForTesting
String Function() idGenerator
getter/setter pair

Mints presentation ids.

Injected because the id is also the analytics dedup key: production needs it UUID-grade, and a test needs it predictable. Same shape as DigiaAnalyticsService.dioFactory.

Implementation

@visibleForTesting
static String Function() idGenerator = const Uuid().v4;