isError property

bool get isError

Returns true if current state is error

Implementation

bool get isError => this == SmartState.error;