Inspect
Nested
dump()
Variable Dump
Pretty-print any Dart value — primitives, lists, maps, nested objects — straight from your Jinja template with {{ dump(variable) }}.
Helper
dump()
Mode
Debug
Rendered output
Interactive, expandable tree of your variable
Live
Map
▼{ 1 properties
"test": ▼{ 6 properties
} "test1": "test",
"test2": 1,
"test3": false,
"test4": "String",
"test5": ▼[ 3 items
}
1,
2,
3
],
"test6": ▼{ 5 properties
"key": "value",
"key2": ▼[ 1 items
}
"https://example.uproid.com/app/includes.js?vr=v1.1782854383423"
],
"key3": {},
"key4": ▼{ 3 properties
"key": ▼{ 2 properties
},
"type": "es"
"session": ▼{ 1 properties
},
"key2": ▼{ 3 properties
"language": "es"
},
"cookies": ▼[ 2 items
"language=es; HttpOnly",
"DARTSESSID=9217a1d010cd1e49077899bdea0ceb50; HttpOnly"
]
"POST": {},
"GET": {},
"FILE": {}
},
"key3": "Instance of 'HomeController'"
Source snippet
The exact Jinja call used above
{{ dump(variable) }}
Good to know
When and how to reach for dump()
Any type
Pass strings, numbers, booleans, lists, maps, even controller objects — dump() walks them recursively.
Collapsible tree
Click any node to expand/collapse — perfect for inspecting deeply nested API responses and session payloads.
Dev only
Strip dump() calls before going to production — they expose internal state to every visitor.
File References
Where this example lives
-
View
example/lib/widgets/example/dump.j2.html -
Controller
example/lib/controllers/home_controller.dart → exampleDump() -
Router
example/lib/route/web_route.dart → key: 'root.dump'