hasText method
Check and return if it is a text and not empty
Implementation
bool hasText() {
if (text is String) {
return text!.isNotEmpty && !(shouldHideText ?? false);
} else {
return false;
}
}
Check and return if it is a text and not empty
bool hasText() {
if (text is String) {
return text!.isNotEmpty && !(shouldHideText ?? false);
} else {
return false;
}
}