Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
type 'MappedListIterable<String, Project>' is not a subtype of type 'List<Project>' #34733
The original issue follows:
The following code appears to type-check but fails with
The resulting exception is:
I have attached the default flutter project, modified to illustrate the problem
Expected: Since the code appears to type-check, the code should not fail at run-time.
I know that adding
I'm thinking the code should fail to type-check in this case, but interested to hear of another perspective.