error property

Object? get error

Latest emitted error, or null if last emitted value is not an error.

Implementation

Object? get error => _latestSnapshot.error;