requireError property

Object get requireError

Last emitted error, or throws "Null check operator used on a null value" error if no error added or value exists.

Implementation

Object get requireError => errorAndStackTrace!.error;