Answers for "dart remove empty string"

1

remove space from string dart

String name = "COCA COLA";
print(name.replaceAll(' ', ''))
Posted by: Guest on February-19-2021
5

dart string empty or null

Testing empty or null, use Dart's safe navigation

if (mystring?.isEmpty ?? true) {
  // 
}
Posted by: Guest on March-06-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language