autoGenId property

String autoGenId

Returns id if that value is not null. Otherwise will automatically generate a new value for id with the idSuffix setter.

Implementation

String get autoGenId => id = id ?? prefixTypeForId(const Uuid().v4());