Name constructor Null safety

const Name(
  1. Either<ValueObjectFailure<String>, String> value
)

Name is the default constructor of this class. It should NOT be used to create a new instance of Name. It's here solely for the purpose to satisfy the compiler since JsonSerializable demands for it. Always use Name.withValue(value) constructor

Implementation

const Name(this.value);