VOOZH about

URL: https://www.geeksforgeeks.org/dart/how-to-check-string-is-empty-or-not-in-dart/

⇱ How to Check String is Empty or Not in Dart (Null Safety)? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Check String is Empty or Not in Dart (Null Safety)?

Last Updated : 7 Apr, 2025

We can check a string is empty or not by the String Property isEmpty. If the string is empty then it returns True if the string is not empty then it returns False.

Syntax:

String.isEmpty 
  • Return : True or False.

Image Representation:

👁 isEmpty


Example 1:


Output:

true


Example 2:


Output:

false
Comment
Article Tags:
Article Tags:

Explore