isBlank property Null safety

bool isBlank

true if this is null (including the string 'null'), empty or consists of only whitespace characters

Implementation

bool get isBlank => isEmptyOrNull || this!.trim().isEmpty;