The error field holds the most recent error from the state stream, !it gets assigned null if a value gets emitted by the state stream.
String? get error => _error;