showDashIfEmpty property
String
get
showDashIfEmpty
Add prefix if not empty else return empty string
Implementation
String get showDashIfEmpty => isEmpty ? '-' : this;
Add prefix if not empty else return empty string
String get showDashIfEmpty => isEmpty ? '-' : this;