Name.maybe constructor
Name.maybe({
- String? input,
Name.maybe is used when the name is optional. Example use case; middleName
Implementation
factory Name.maybe({String? input}) {
if (input == null) {
return Name._(right(UNKNOWN));
}
return Name._(right(input));
}