errorOrNull property Null safety

Object? errorOrNull
override

Last emitted error, or null if no error added.

Implementation

@override
Object? get errorOrNull => _wrapper.errorAndStackTrace?.error;