I'm trying to print a message to stderr. Is there a way to pass the stderr filehandle to print?
Asked
Active
Viewed 4,280 times
1 Answers
12
Found it:
stderr.write("Message");

Nicolas Garnier
- 12,134
- 2
- 42
- 39

Shannon -jj Behrens
- 4,910
- 2
- 19
- 24
-
1To use `stderr`, the import `import 'dart:io';` is required. – Janux Apr 14 '21 at 05:24
-
`stderr.writeln` is a closer analogue to the `print` function since it prints a *line*. – jamesdlin May 04 '21 at 16:30