ActionResult.failed constructor

const ActionResult.failed(
  1. Object error
)

creates an ActionResult in FailedState with error

Implementation

const factory ActionResult.failed(Object error) = _Failed;