isError property

bool get isError

Checks if the result represents an error.

Implementation

bool get isError => exception != null;