isSuccess property
bool
get
isSuccess
Returns true if the response was successful (has data and no error).
Implementation
bool get isSuccess => error == null && data != null;
Returns true if the response was successful (has data and no error).
bool get isSuccess => error == null && data != null;