nullOrEmpty function

bool nullOrEmpty(
  1. String? source
)

Returns true if string is either null or empty.

Implementation

bool nullOrEmpty(String? source) => source?.isEmpty ?? true;