isEmpty function

bool isEmpty(
  1. String string
)

trim the string then checks if isEmpty

Implementation

bool isEmpty(String string) {
  return string.trim().isEmpty;
}