ActionResult.failed constructor
const
ActionResult.failed(
- dynamic error, [
- StackTrace? stackTrace
creates the FailedResult
error
is the Error/Exception fails the action
stackTrace
indicates where the error
was thrown, it is optional
Implementation
const factory ActionResult.failed(dynamic error, [StackTrace? stackTrace]) =
_Failed;