简体   繁体   中英

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.

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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM