Created
June 5, 2018 02:01
-
-
Save ailabs-software/453b9adbff1d85c02f3020952f556523 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Solved by re-creating the outer maps so the inner maps could be cast. | |
final results = new List< Map<Object, Map<Object, num> > >(); | |
for (final value in windowValues) | |
{ | |
Map<Object, Map<Object, num> > outerMap = | |
new Map<Object, Map<Object, num> >.fromEntries( | |
(value as Map).entries.map( (entry) => new MapEntry<Object, Map<Object, num> >(entry.key, (entry.value as Map).cast<Object, num>() ) ) | |
); | |
results.add(outerMap); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment