View getImageInfo.dart
dynamic getImageInfo(String base64String) async { | |
Completer<ui.Image> completer = new Completer<ui.Image>(); | |
imageFromBase64String(base64String) | |
.resolve( | |
ImageConfiguration(), | |
) | |
.addListener( | |
ImageStreamListener( | |
(ImageInfo info, bool _) => completer.complete(info.image), | |
), |
View explanation.js
// what the f is going on??? | |
// and by the way, this is not cool at all! | |
// 😫 | |
function isThisCool(vals, fn, rx) { | |
vals = vals || Array.prototype; | |
fn = fn || Function.prototype; | |
rx = rx || RegExp.prototype; | |
return rx.test(vals.map(fn).join("")); |