addError method
Cannot send an error to this subject. Always throws an UnsupportedError.
Implementation
@override
Never addError(Object error, [StackTrace? stackTrace]) => throw UnsupportedError(
'Cannot add error to StateSubject, error: $error, stackTrace: $stackTrace');