FenwayDog
FenwayDog

Reputation: 101

How do I write to the chrome console using dart console object?

The dart console has a private constructor and is set to internal only. I'm looking for more functionality than just a standard print. Like the ability to print an object or JSON.

Upvotes: 1

Views: 123

Answers (1)

Hadrien Lejard
Hadrien Lejard

Reputation: 5894

If you are using DDC (don't know about dart2js)

you can use the console debug function, you should be able to inspect inside your object

window.console.debug(obj);

Upvotes: 2

Related Questions