Beyond seven mountain ranges, beyond seven rivers and beyond seven Google buildings lived a technology called Angular. One day it met another technology - Firebase and they decided to do an App together.
In this talk I will show you why AngularDart is a framework you should definitely take a look at and how you can use it together with Firebase to build great apps!
60. Do I need to write this
manually?!
TypeScript types definition file?
js_facade_gen library
61. Wrapper around interop
Dart types
package:firebase
// How we use the library
try {
await childRef.remove();
} catch (e) {
print("Error while deleting item, $e");
}
62. package:firebase
// Implementation in wrapper class
Future remove() =>
handleThenable(jsObject.remove());
Wrapper around interop
Dart types
Thenable to Future “magic”
63. package:firebase
Wrapper around interop
Allow-interop solved
// Implementation in wrapper class
bool forEach(action(DataSnapshot snapshot)) {
var actionWrap =
allowInterop((d) => action(...));
return jsObject.forEach(actionWrap);
}