isError function

  1. @Deprecated("Use 'object is Error' instead")
bool isError(
  1. dynamic object
)

Implementation

@Deprecated("Use 'object is Error' instead")
bool isError(dynamic object) {
  return object is Error || object is Exception;
}