I'm trying to convert image to base64 text in Getx controller but it shows error saying "A value of type 'String' can't be assigned to a variable of type 'RxString'".
Asked
Active
Viewed 3,146 times
3
-
Please provide enough code so others can better understand or reproduce the problem. – Community Nov 17 '21 at 08:31
1 Answers
9
final RxString rxstring = 'Hello'.obs;
rxstring.value = 'Hi'; // <-- this can change the value of the Rx variable and also trigger its listeners

Dorrin-sot
- 309
- 1
- 3