3

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'".

VINODH
  • 41
  • 1
  • 3

1 Answers1

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