QueryResult<T>.failed constructor

const QueryResult<T>.failed(
  1. dynamic error, [
  2. 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 QueryResult.failed(dynamic error, [StackTrace? stackTrace]) =
    _Failed;