AsyncError constructor

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

Implementation

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