ErrorAndStackTrace constructor Null safety

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

Constructs an object containing both an error and the corresponding stackTrace.

Implementation

ErrorAndStackTrace(this.error, this.stackTrace);