CustomerId constructor

CustomerId(
  1. String value
)

Implementation

CustomerId(this.value) {
  if (value.trim().isEmpty) {
    throw ArgumentError('CustomerId cannot be empty');
  }
}