Console.error () in Dart?

How to do it console.error(foo); in dart?

The print() method is approaching, but this is not quite what I want. I want to receive an error notification and an icon along with a stack trace.

+4
source share
1 answer

This is actually very simple in Dart:

 import 'dart:html'; main() { window.console.error('Something bad occurred'); } 
+9
source

Source: https://habr.com/ru/post/1443811/


All Articles