AggregateId constructor
AggregateId([
- String? value
Implementation
AggregateId([String? value]) : value = value ?? Uuid().v4() {
if (this.value.isEmpty) {
throw ArgumentError(
'Aggregate id $runtimeType can not have empty value',
);
}
}