isNotEmpty function

bool isNotEmpty(
  1. String? string
)

trim the string then checks if isNotEmpty

Implementation

bool isNotEmpty(String? string) {
  return string?.trim().isNotEmpty ?? false;
}