# Empty

## Testing for an Empty String

An Empty String is a String that is meats at least ONE of the following criteria

* is null
* is zero length

### isEmpty

```dart
 String isEmpty(String? string)
```

The isEmpty returns true if ANY ONE of the above criteria holds true

```dart
String.isEmpty(null);
-> true
String.isEmpty('');
-> true
String.isEmpty('\t\n\r ');
-> false
String.isEmpty('a');
-> false
```

### isNotEmpty

```dart
 String isNotEmpty(String? string)
```

The isNotBlank returns true only if ALL  of the above criteria are invalid

```dart
String.isNotEmpty(null);
-> false
String.isNotEmpty('');
-> false
String.isNotEmpty('\t\n\r ');
-> true
String.isNotEmpty('a');
-> true

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://strings.onepub.dev/empty.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
