isOnlyWhiteSpace property

bool get isOnlyWhiteSpace

This primarily checks if the trimmed string is empty.

Implementation

bool get isOnlyWhiteSpace => trim().isEmpty;