isError method

bool isError()

Returns true if the result is error.

Implementation

bool isError() => type == ResultType.error;