isNullOrBlank property

bool get isNullOrBlank

Returns true when this is either null or isBlank.

  • String? is blank when it has a value and contains only whitespaces.

Implementation

bool get isNullOrBlank {
  return this?.isBlank ?? true;
}