Null when null or "". name.nullIfEmpty()
name.nullIfEmpty()
String? nullIfEmpty() => (this ?? "").isEmpty ? null : this;