hasValue property
bool
get
hasValue
Returns true if this string is not null and not empty.
This is a convenience getter that combines null and empty checks.
Implementation
bool get hasValue => this != null && this!.isNotEmpty;