We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
dart has console.log(..) ?
Sorry, something went wrong.
@Silentdoer dart:html
dart:html
We'll likely wait until we have dart-lang/language#1014 – same for print
print
Thanks for filing the issue.
Until this is addressed, note you can use JS-interop to circumvent the problem:
@JS() library foo; import 'package:js/js.dart' ... @JS('window.console') external myConsole(arg1, arg2, arg3); ... main() { myConsole(a, b, c); }
or:
import 'dart:js_util' as js_util; import 'dart:html'; ... main() { js_util.callMethod(window, 'console', [a, b, c]); }
I was able to find a very similar and old request here: #19977, so I'll close this as a duplicate of that.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: