error property

Object? get error

Current error (null if loading or has data).

Implementation

Object? get error => state.errorOrNull;