ErrorResult constructor Null safety

ErrorResult(
  1. Object error,
  2. [StackTrace? stackTrace]
)

Implementation

ErrorResult(this.error, [StackTrace? stackTrace])
    : stackTrace = stackTrace ?? AsyncError.defaultStackTrace(error);