toString method
Returns a string that can be used as display, returns title if is valid and is not empty, returns placeholder if is valid and is empty.
Implementation
@override
String toString() {
if (title == null) {
return '';
}
return title!.join(', ');
}