error property

Object? get error

Last emitted error, or null if no error added or value exists.

Implementation

Object? get error => errorAndStackTrace?.error;