Timeline for My Flutter project using GetX no longer recognizes GetX reactive variables — the error: 'There isn't a setter named 'value' in class 'RxObjectMixin'
Current License: CC BY-SA 4.0
Post Revisions
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 24, 2025 at 22:31 | comment | added | Ertan | Yes now there is set value(T val). | |
| Oct 24, 2025 at 22:06 | comment | added | pskink |
check the line 98 again, now it should be: set value(T val) { ;-) i hope you did not do rm -rf ~/.pub-cache but rather rm -rf ~/.pub-cache/get-4.7.2 ...
|
|
| Oct 24, 2025 at 20:55 | comment | added | Ertan | I can’t believe it — I deleted my pub-cache (rm -rf ~/.pub-cache), then ran flutter clean and flutter pub get, and now everything is working again. | |
| Oct 24, 2025 at 20:53 | comment | added | pskink |
off topic: any reason for using this 'weird' state management package? I recently found signals and state_beacon very handy for providing reactive data
|
|
| Oct 24, 2025 at 20:49 | comment | added | pskink |
set xvalue(? hmmm, why x? are you sure you did not touch it by mistake? to fix it i would just remove the whole folder <pub_root>/get-4.7.2 and reinstall getx
|
|
| Oct 24, 2025 at 20:36 | comment | added | Ertan |
This is my version Flutter 3.35.7 • channel stable • github.com/flutter/flutter.git Framework • revision adc9010625 (3 days ago) • 2025年10月21日 14:16:03 -0400 Engine • hash 6b24e1b529bc46df7ff397667502719a2a8b6b72 (revision 035316565a) (2 days ago) • 2025年10月21日 14:28:01.000Z Tools • Dart 3.9.2 • DevTools 2.48.0 In line 98 I have this code: set xvalue(T val) { if (subject.isClosed) return; sentToStream = false; if (_value == val && !firstRebuild) return; firstRebuild = false; _value = val; sentToStream = true; subject.add(_value); }
|
|
| Oct 24, 2025 at 13:30 | comment | added | pskink | i just tried the code and no errors, flutter version 3.38.0-0.1.pre, what do you have in <pub_root>/get-4.7.2/lib/get_rx/src/rx_types/rx_core/rx_impl.dart, line 98? | |
| Oct 24, 2025 at 13:19 | comment | added | Ertan | Yes, it’s still happening. I created a new project with VS Code, and it’s happening there as well. | |
| S Oct 24, 2025 at 11:23 | review | First questions | |||
| Oct 24, 2025 at 11:35 | |||||
| S Oct 24, 2025 at 11:23 | history | asked | Ertan | CC BY-SA 4.0 |