how-to-print-multiple-objects-to-the-console-with-print-in-dart

Installation
SKILL.md

How to Print Multiple Objects to the Console with print() in Dart

If you are coming from JavaScript you may be used to printing multiple objects to the console with console.log():

console.log('a', 1, 'b', 2); // a 1 b 2

In Dart we can only print Object? to the console with print():

print(1); // 1
print(null); // null
print({'a': 1, 'b': 2}); // {a: 1, b: 1}

But it is totally possible to print multiple objects too, we need to use Records:

Related skills
Installs
36
GitHub Stars
39
First Seen
Feb 4, 2026