Error constructor

Error(
  1. Object _cause, {
  2. Error? parent,
})

Implementation

Error(this._cause, {Error? parent}) : _parent = parent {
  _stackTrace = hasStackTrace ? StackTrace.current : null;
}