How can I log into the browser console, like console.log in JavaScript, from the Dart language?
How can I log into the browser console, like console.log in JavaScript, from the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simple:
A basic top-level
printfunction is always available in all implementations of Dart (browser, VM, etc.). Because Dart has string interpolation, it’s easy to use that to print useful stuff too: