i have encounterd this problem in this example:
class AuthController extends GetxController {
final storage = const FlutterSecureStorage();
var authData = [].obs;
var isLoading = false.obs;
var authLoading = false.obs;
@override
onInit() {
authUser();
super.onInit();
}
authUser() async {
var all = await storage.readAll();
authData.value = all.entries
.map((e) => AuthModel(key: e.key, value: e.value)).toList(growable: false);
}
bool isAuth() {
var a = isLoading.value.isBlank;
return authData.value.isNotEmpty;
}
here in this line:
return authData.value.isNotEmpty;
IDE add line under (value) and warning like this:
The member 'value' can only be used within instance members of subclasses of 'package:get/get_rx/src/rx_types/rx_iterables/rx_list.dart'.
how can i solve this problem? or just work around it? >>> Thank you in advace