AsyncError 构造函数

AsyncError(
  1. Object error,
  2. StackTrace? stackTrace
)

实现

AsyncError(Object error, StackTrace? stackTrace)
    : error = checkNotNullable(error, "error"),
      stackTrace = stackTrace ?? defaultStackTrace(error);