isSuccessful property

bool isSuccessful

Returns true if the response is successful, and false otherwise.

Implementation

bool get isSuccessful {
  return code == 0;
}