isSuccessful property

bool get isSuccessful

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

Implementation

bool get isSuccessful {
  return code == 0;
}