isFailed method

bool isFailed(
  1. Object actionOrTypeOrList
)

Returns true if an actionOrTypeOrList failed with an UserException.

Example:

if (context.isFailed(MyAction)) { // Show an error message. }

Implementation

bool isFailed(Object actionOrTypeOrList) => StoreProvider.isFailed(this, actionOrTypeOrList);