Fix: type List<dynamic>' is not a subtype of type 'List<String> #224 #226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
##Fix: type List' is not a subtype of type 'List #224
What does this PR do?
Earlier I was also facing this issue
List<dynamic>' is not a subtype of type 'List<String>
I checked the issues on appwrite/sdk-for-flutter and it was also faced by other developers, so I fix the two issues are as follows:While using account!.createEmailPasswordSession();
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>' new Session.fromMap (package:appwrite/src/models/session.dart:152:31) Account.createEmailPasswordSession (package:appwrite/services/account.dart:646:27)
While using account.create(userId: ID.unique(), name: name, email: email, password: password);
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>' E/flutter (29288): #0 new User.fromMap (package:appwrite/src/models/user.dart:95:29) E/flutter (29288): #1 Account.create (package:appwrite/services/account.dart:56:24)
Related PRs and Issues
type List<dynamic>' is not a subtype of type 'List<String>
(#224)Have you read the Contributing Guidelines on issues?
YES