firstNonEmpty function

String? firstNonEmpty(
  1. Iterable<String?>? strings
)

Implementation

String? firstNonEmpty(Iterable<String?>? strings) {
  if (strings == null) {
    return null;
  } else {
    for (final string in strings) {
      if (string != null && string.isNotEmpty) {
        return string;
      }
    }
    return null;
  }
}