No, the type 'Map<object, object="">' is not considered a subtype of 'Map<string, dynamic="">'. This is because 'Object' is a super type of 'String', and 'dynamic' is a super type of 'Object'. Therefore, a value of type 'Object' could be something other than 'String', and a value of type 'dynamic' could be something other than 'Object', so they are not compatible.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-07-08 11:00:00 +0000
Seen: 19 times
Last updated: Feb 27 '23
How can JSON be decoded while using a universal interface as a field?
How can a new object with a specific type be created in Angular 2 using the domain model?
What is a more effective method to verify the type of an Array containing elements of any type?
How can I remove items from the Symfony dropdown form type?
How can I create a new table by changing the current table type?
How can the project type be modified from a class library to a WPF User control library?
How do you type hint a decorator that modifies the function parameters or signature?