AggregateId constructor

AggregateId([
  1. String? value
])

Implementation

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