js_bindings 0.0.4-dev.2
js_bindings: ^0.0.4-dev.2 copied to clipboard
Complete JS bindings interop with autocomplete and documentation.
0.0.4-dev #
- Breaking change: The
Promiseis gone. The builder now generatesFuturewhen it sees aPromise. So no need to usepromiseToFutureat all. - Breaking change: The
allowInteropis gone. The builder now automatically addsallowInteropso you can use regular DartFunction()on callbacks.
Example:- Old way:
element.addEventListener('click', allowInterop((ev) {})) - New way:
element.addEventListener('click', (ev) {})
- Old way:
- Removed a number of runtime dependencies.
- Require Dart 2.14 or greater
- Require package:js 0.6.4 or greater
- Updated the builders to use
@staticInteropalong with dart:js_util - The
exampledir is working and has more examples
0.0.3 #
- Formatting and example
0.0.2 #
- Link MediaStream on ReadMe
0.0.1 #
- Package tries to fully transpile WebIDLs to Dart.