AsyncError constructor Null safety

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

Implementation

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