Inspect Nested 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

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'