errorText property
String?
get
errorText
Implementation
String? get errorText {
//if (error != null) return error;
var err = _cd?.control?.errors;
if (err != null) {
Map<String, dynamic> errorMap = err;
var stringValue = errorMap.values.firstWhere(
((v) => (v is String) && v.isNotEmpty),
orElse: () => null);
if (stringValue != null) return stringValue as String;
}
return null;
}