Method that will returns a if a is not null or an empty string. Otherwise, b will be returned.
a
b
String ifFalsy(String? a, String b) { return validate(a, (x) => (x ?? '').isNotEmpty) ? a! : b; }