exceptionFor method
Returns the UserException of the actionTypeOrList
that failed.
The actionTypeOrList
can be a Type, or an Iterable of types. Any other type
of object will return null and throw a StoreException after the async gap.
Example:
if (context.isFailed(SaveUserAction)) Text(context.exceptionFor(SaveUserAction)!.reason ?? '');
Implementation
UserException? exceptionFor(Object actionOrTypeOrList) =>
StoreProvider.exceptionFor(this, actionOrTypeOrList);