isNullOrEmpty property

bool isNullOrEmpty

isNullOrEmpty extension this extension will check if the string is empty or null

Implementation

bool get isNullOrEmpty => this == null || (this != null && this?.isEmpty == true);