isSuccess property
bool
isSuccess
Indicates if the request was successfull or not
Returns true if data is not null and there're no error messages, otherwise returns false
Implementation
bool get isSuccess {
var res = data != null && errors.isEmpty;
if (res) {
if (data is String) {
res = (data as String).isNotEmpty;
}
}
return res;
}