AutoIdDirective constructor

AutoIdDirective(
  1. @Optional() IdGenerator? idGenerator,
  2. @Attribute('id') String? existingId
)

Implementation

AutoIdDirective(
    @Optional() IdGenerator? idGenerator, @Attribute('id') String? existingId)
    : id = existingId ??
          ((idGenerator ?? SequentialIdGenerator.fromUUID()).nextId());