isError property

bool isError

Checks if the current state is Error.

Implementation

bool get isError => this is Error<T>;