isError property

  1. @override
bool get isError
override

Returns true if this result represents an error/failure case, false otherwise. This is equivalent to checking if the result is an instance of Failure.

Implementation

@override
bool get isError => true;