isEmpty function

bool isEmpty(
  1. String s
)

Checks if a string is empty.

print(isEmpty('')); // Outputs: true

Implementation

bool isEmpty(String s) => s.isEmpty;