Returns result of f if this is empty, else returns this.
f
this
String ifEmpty(String Function() f) => isEmpty ? f() : this;