我试图在 Getx Controller 中将图像转换为 base64 文本,但它显示错误消息“无法将‘String’类型的值分配给‘RxString’类型的变量”。
最佳答案
final RxString rxstring = 'Hello'.obs;
rxstring.value = 'Hi'; // <-- this can change the value of the Rx variable and also trigger its listeners
关于flutter - 无法将类型为 'String' 的值分配给 flutter Getx 中类型为 'RxString' 的变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69969845/