If the provided String is empty do something.
String
String foo = ''; foo.ifEmpty(()=>print('String is empty'));
String ifEmpty(Function act) { return this.trim().isEmpty ? act() : this; }