isNullOrEmpty property

bool isNullOrEmpty

Checks if the string is null, empty, or contains only whitespace characters.

Implementation

bool get isNullOrEmpty => (this == null || this?.trim() == '');