Theres an isEmpty and isNotEmpty method on String, https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-core.String#id_isEmpty