This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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("")); |