Dart String vacía o nulo
Testing empty or null, use Dart's safe navigation
if (mystring?.isEmpty ?? true) {
//
}
Exuberant Eland
Testing empty or null, use Dart's safe navigation
if (mystring?.isEmpty ?? true) {
//
}
String? st = "";
// print string is empty or not
print(st.isEmpty); // true