isError method Null safety

bool isError()

Determines if this response represents an error.

Implementation

bool isError() => (errorCode != null) && (errorDetail != null);