AsyncActionResult.failed constructor Null safety

const AsyncActionResult.failed(
  1. dynamic error,
  2. [StackTrace? stackTrace]
)

Creates the FailedResult, indicates the action is failed

Implementation

const factory AsyncActionResult.failed(dynamic error,
    [StackTrace? stackTrace]) = _Failed;