Hello,
What are the probable causes for this exception when I run the getCurrentUser:
Plain text
Future<User> getCurrentUser() async =>
Account(_client).get().then((value) => value);```
Exception`Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>'`
Summary
The user is experiencing an exception when trying to retrieve the current user in Flutter. The solution is to downgrade the flutter plugin to version 9.0.0. The Appwrite flutter SDK version 11 is meant for Appwrite 1.4, so it needs to be downgraded. The exception message suggests that there is a type error, specifically 'Null' not being a subtype of 'List<dynamic>'.
Arrow
Rank 3: Container
Sep 19, 2023, 19:49
Plain text
#0 new User.fromMap (package:appwrite/src/models/user.dart:87:18)