Commit 4ae55b9e authored by Wilko Manger's avatar Wilko Manger

Fix nested map retrieval extension method

parent 6307a15e
......@@ -9,10 +9,11 @@ extension MapExtensions on Map {
/// Will return null if any of the keys don't exist or are not a Map.
dynamic get(List keys) {
var current;
var current = this;
for (final key in keys) {
current = this[key];
current = current[key];
if (current == null || current is! Map) {
return current;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment